Hi / Salut
You can see the end result here:
Search Form
Content View
I have started a tutorial but need to add the images....
Will do when have chance<br>
Showing an example of using 'FieldX'
There might be a better way but this works for me.
This would be similar to a book content type where you can add multiple authors, and multiple publishers etc...
I have a Content Type called 'Bands and Artists'
I have a content type called 'Lesson Files'
In the Admin form for 'Lesson Files' I want to add at least one 'Band and Artist'.
In the Admin form for 'Lesson Files' I want to be able to create a new 'Band and Artist' if required.
ADMIN Form View
In my 'Lesson Files' I add a 'Select Dynamic' Field to pull in the list of existing 'Bands and Artists'
Field Name: choose_bands_and_artists
Table: #__content
Options Name: title
Options Value: id
Where: catid=12 AND state=1
Storage: None
Storage is none because 'FieldX' will be handling it.
In my 'Lesson Files' I add a 'FieldX' Field to duplicate the 'Choodse Bands and Artists' field.
Field Name: added_bands_and_artists
Field*: choose_bands_and_artists
Storage: Custom | Article | bands_artists[choose_bands_and_artists]
I also add a 'Button Free' to enable me to add a new 'Bands and Artists' if required
Name: button_to_add_bands_and_artists
Link: Form {Link: "Content Type = Band or Artist"}
Storage: None
CONTENT View
I add the 'FieldX' field to show the added 'Bands and Artists'
Select 2 (Link + Typography) and in Typography column, select: Collection - List
SEARCH Form View
I created a new 'Select Dynamic' field: 'Filter Bands and Artists'
Name: filter_bands_and_artists
Table: #__content
Options Name: title
Options Value: id
Where: catid=12
Storage: Custom | Article | bands_artists[choose_bands_and_artists]
Select 3 (Match + Stage) and in 'Match' select 'Exact' and choose your FieldX, for me it was 'added_bands_and_artists'
LIST View
Add the 'FieldX' field: added_bands_and_artists
Select 2 (Link + Typography) and in Typography column, select: Collection - List
NOTE: In a Search Form you can only add 1 fieldx to a Search Generic field.