Here we go again...
I am currently working on a project that requires me to have a full session schedule that can be filtered by its type or track using jQuery. For the dropdowns, I'm using the out of the box EE dropdown custom section field type.
In past implementations of this kind I would simply hard code the drop down option on the front end, but this has caused problems with the client adds a new value to the list. I have to make sure to add it in both places - the custom section field definition and the hard-coded templates.
Not anymore.
May I introduce Dropdownplus. In this plugin all you have to do is pass the custom section field of the "dropdown" type and you get the list of available values. It also has a optional "style" parameter to control the output type: plain (default), select (return option tags) and list.
Here is the usage:
{ exp:dropdownplus field_name="your-field-name" }
or
{ exp:dropdownplus field_name="your-field-name" style="select" }to return <option> tags
I hope it would make your life easier ![]()