Page 1 of 1

multiple selection dropdown using CSContentUtils

Posted: Fri Jul 29, 2011 4:20 am
by evo
Hi,

I am using the SimpleTagging module and when I edit the page, I would like to select the tags from a drop down menu.

So I have installed CGContentUtils and made a dropdown block like so:

Code: Select all

{content_module module='CGContentUtils' block='Tags' name='Tags' label='Tags'}
In the template for the page where I want to use it I changed:

Code: Select all

<!-- {content block="Tags" wysiwyg="false" oneline="true"} -->
To:

Code: Select all

<!-- {content_module module='CGContentUtils' block='Tags' name='Tags' label='Tags'} -->
So far so good, it works (see picture), and when I select tags for pages, I also get the related ones (as per the SimpleTagging module), but I can only select 1 tag.

The HTML that is generated looks like:

Code: Select all

 <select class="cms_dropdown" name="Tags"><option value="USSR">USSR</option><option value="europe">europe</option><op ...
I don't have a clue where the class cms_dropdown is defined (and if I should even be changing it). I have tried to find a way to enable the multiple attribute in <select ...>, but no luck yet.
Anyone have an idea on how I can somehow enable multiple selections?

Thanks,

Edwin

Re: multiple selection dropdown using CSContentUtils

Posted: Fri Jul 29, 2011 8:35 am
by uniqu3
AdvancedContent Module has Multiselect option built in, better then hacking a module.
Or you could use checkbox instead of select.

Re: multiple selection dropdown using CSContentUtils

Posted: Mon Aug 01, 2011 12:03 am
by evo
Thank you, that works - and no coding required (I like those solutions best).