J4 Issue ?
avatar lambdaheart
lambdaheart
15 May 2019

Is your feature request related to a problem? Please describe.

Currently if I want to use custom fields for implementing article gallery or attachments I could use something like repeatable field and then construct a subform with media field for attaching the image and text field for adding caption to that image.

However, this is pain in the a** because user has to add images one by one.

Describe the solution you'd like

Perfect solution would be to introduce concept of multi select field type from which other fields could inherit.

Inheriting from multi_select shouldn't mean that this field should necessarily always return multiple items, just that it can return multiple items if required to do so.

For example, here's how already existing fields could behave when they implement multi_select:

  • media : user could select multiple files at once returning array of files
  • calendar : user could select a range of dates at once returning array of dates
  • user : user could select multiple users at once returning array of users

And some potential new fields that I'd also like to see:

  • article : user can select multiple articles at once returning array of articles

So the idea here is that fields that implement multi_select would behave like normal single select fields as they usually do (e.g. media, user, calendar ...), but when they are within repeatable field a select box would appear above the repeatable field table allowing us to choose by which multi_select field in repeatable field we want to add new rows.

At first I thought that if there are multiple multi_select fields within the repeatable field that we should somehow select which one is "primary" but then again, why should we not be able to add new rows by any multi_select field?

Additional context

Here's the ascii layout sketch of what I'm imagining:

--------------------------------------------
| Media          ▼ | [Add New Rows Button] |
--------------------------------------------

-------------------------------------------------------------
| Image 01 [Edit] | User 01 [Edit] | Some text field 01 | [x]
-------------------------------------------------------------
| Image 02 [Edit] | User 02 [Edit] | Some text field 02 | [x]
-------------------------------------------------------------
| Image 03 [Edit] | User 03 [Edit] | Some text field 03 | [x]
-------------------------------------------------------------
| Image 04 [Edit] | User 04 [Edit] | Some text field 04 | [x]
-------------------------------------------------------------
| Image 05 [Edit] | User 05 [Edit] | Some text field 05 | [x]
-------------------------------------------------------------
| Image 06 [Edit] | User 06 [Edit] | Some text field 06 | [x]
-------------------------------------------------------------

So basically, here are two multi_select fields (media and user) within the repeatable field and a normal text field.

Before the repeatable items there is a drop down list where we can select either media or user field, and once we do we can click Add New Rows Button which will open modal where we can either select multiple files form media manager, or multiple users from user list.

When we select n users from the user list modal window we get n new rows with those selected users but all other fields empty, leaving it to the user to fill them in.

We can also change from user to media and after clicking Add New Rows Button we could add additional x rows after selecting x images.

If we try to change e.g. Image 04 from the example we get modal window again, but this time we can only select one image for that particular row in repeatable.


I think this is a good idea which would make custom fields extremely useful, but it could go to waste if we are late with adoption.

So far media manager is the main blocker for this feature because it is very bad and can't select multiple images (and files not at all) from the modal window, and he is the main feature required for creating galleries, attachments and such.

avatar lambdaheart lambdaheart - open - 15 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 15 May 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 May 2019
avatar lambdaheart lambdaheart - change - 15 May 2019
The description was changed
avatar lambdaheart lambdaheart - edited - 15 May 2019
avatar lambdaheart lambdaheart - change - 15 May 2019
The description was changed
avatar lambdaheart lambdaheart - edited - 15 May 2019
avatar lambdaheart lambdaheart - change - 15 May 2019
The description was changed
avatar lambdaheart lambdaheart - edited - 15 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 May 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 16 May 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 May 2019

Please add "[4.0]" at Start of Title as new Features go in J4.

avatar lambdaheart lambdaheart - change - 16 May 2019
Title
Introduce a concept of multi select field before it's too late
[4.0] Introduce a concept of multi select field before it's too late
avatar lambdaheart lambdaheart - edited - 16 May 2019
avatar lambdaheart lambdaheart - change - 16 May 2019
Title
Introduce a concept of multi select field before it's too late
[4.0] Introduce a concept of multi select field before it's too late
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 May 2019

@alikon something to comment as Feature Request?

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 May 2019
Status New Information Required
avatar alikon
alikon - comment - 21 May 2019

@franz-wohlkoenig imo a feature request that can be covered already with extensions

avatar franz-wohlkoenig franz-wohlkoenig - close - 21 May 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 May 2019

closed for Reason stated above.

Thanks @alikon

avatar franz-wohlkoenig franz-wohlkoenig - close - 21 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 May 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-05-21 07:21:31
Closed_By franz-wohlkoenig
avatar lambdaheart
lambdaheart - comment - 23 May 2019

@alikon @franz-wohlkoenig I don't see how this can be covered with extensions. Whole idea of repeatable field is that it integrates with other fields (which can be created by other users).

If a standard for this undoubtedly very useful behaviour is not set in core Joomla then I don't see how two different fields from two different authors can work well with one another in this situation.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 May 2019

reopen for further discussion @alikon

avatar franz-wohlkoenig franz-wohlkoenig - change - 24 May 2019
Status Closed New
Closed_Date 2019-05-21 07:21:31
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - reopen - 24 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - reopen - 24 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 24 May 2019
Status New Discussion
avatar AndySDH
AndySDH - comment - 28 May 2019

And some potential new fields that I'd also like to see:
article : user can select multiple articles at once returning array of articles

For that there already is a fantastic extension for it: https://www.regularlabs.com/extensions/articlesfield/

avatar alikon
alikon - comment - 23 Feb 2020

so we have an alternative with a 3dp extension can we close this ?

avatar AndySDH
AndySDH - comment - 2 Nov 2020

This has been merged with Subfields, can be closed

avatar Quy Quy - change - 2 Nov 2020
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2020-11-02 15:19:51
Closed_By Quy
avatar Quy Quy - close - 2 Nov 2020

Add a Comment

Login with GitHub to post a comment