Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
I've understood how one can make a dropdown list editable using the cms:input tag.
Code: Select all
<cms:input type="dropdown"
name="subject"
label='Subject'
opt_values='Please select a subject=- | General enquiry | Booking enquiry'
opt_selected='General enquiry'
required='1' />

The opt_values would allow me to make the items editable for the client. But is there a way to include optgroup elements using Couch?

My current HTML code goes something like this:
Code: Select all
<option>xy</option>
<optgroup label="xx">
   <option>xy</option>
   <option>xy</option>
</optgroup>
<optgroup label="yy">
   <option>xy</option>
   <option>xy</option>
</optgroup>
<option>xy</option>
<option>xy</option>
I'm afraid but there is no way, currently, to create optgroups in Couch.
Some time back, @cheesypoof and I had a discussion regarding the same and we had decided to implement this functionality. So, we'll definitely have it in the very near future.

Thanks.
Is there anything new on this topic?
I would like to generate a grouped input field in a form with folders of a portfolio page as optgroups and pages as values.
I can create the appropriate html code using the following code:

Code: Select all
 <select name="kurs" class="span4" tabindex="10" >
<cms:folders masterpage='kurse.php'>
   <cms:if k_folder_pagecount gt '0'>
                              <optgroup label="<cms:show k_folder_title />">
      <cms:pages masterpage='kurse.php' folder=k_folder_name include_subfolders='0' >
                                 <option value="<cms:show k_page_title />"><cms:show k_page_title /></option>
      </cms:pages>
                              </optgroup>
   </cms:if>
</cms:folders>
</select>


Sadly the selected value is not included in k_success.
Is it possible to somehow inject the userinput into k_success or access the values transmitted in the post manually?

Thanks and all the best
Joern
Nothing yet, Joern, I am afraid.
The feature still remains on the to-do list.
4 posts Page 1 of 1