SQL queries / Multiselect / Textselect

More
6 years 7 months ago - 6 years 7 months ago #72637 by mauriciocgpereira@gmail.com
I've got a item type called "Event" that has several fields associated.

One of the fields is "Speakers".

I'd like to be able to select more than one speaker to each event, and if the name doesn't exist than create it on the fly. If it was only this it was easy, a simple textselect field was enough.

The issue is that this field repeats several times in the form and besides that I'd like to be able to manage this speakers so that I could create a biography for each one of them.

Is there any way to achieve this? Some kind of workaround?!

Thanks
Last edit: 6 years 7 months ago by mauriciocgpereira@gmail.com.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #72638 by mauriciocgpereira@gmail.com
I even remembered of creating an item type of name "speakers" to which I would associate several fields and where would manage these speakers.

Then, in the item type "events" I would populate the multiselect lists needed with the names I would fetch using a SQL query. But what should be that SQL query?

And this way it's not possible to add in the events form a new name that doesn't exist, is it?

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #72639 by ggppdk
Hello


why don't you use the relation (related items) field ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #72640 by mauriciocgpereira@gmail.com
Because I don't know exactly how does it work! :-)

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #72641 by ggppdk
Hello

it is the most appropriate / natural way to achieve what you need
- you can create relate items of type "Speaker" to the items of type "Event"

Just look at the available configuration options in the Editting TAB of the field


1. Create the new field and "assign" it only to type "Events"
(so that it appear only to item form of "Events")

2. Select it to shown only items of type "Speakers"

3. Optionally enable options like drag and drop sorting of its values (aka of speakers) in item form

4. In viewing TAB (when field appears in frontend inside an event) you can select not only to display the name of the speakers
-- but anything about, them, e.g. their image, or anything

5. In category view it can display differently than in item view, e.g. in category view you can configure it to show only a total number of speakers or only their names etc

test it, its usage is documented inside the popup descrtiptions of every parameter


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: mauriciocgpereira@gmail.com

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #72854 by mauriciocgpereira@gmail.com
Thanks.
Sorry for my late reply. I've been out.
I'll try your suggestion.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.435 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline