Task: Print the TV (Input Type: Listbox (Multi-Select), Input Option Values: option1==value1||optionN==valueN) as a drop-down list:
<select name="Name">
<option value="option1">Option 1</option>
<option value="optionN">Option n</option>
<select>
Unfortunately, the Revolution 2.1.3-pl did not have this type of output.
1. The first solution that came to mind is the TV show as HTML Tag. But could not find information how to get the variable name (option1, optionN). It turned out just like this:
<option value>value1</option> <!-- atttribut value is empty -->
2. Guided by the document to create the type of output (
http://rtfm.modx.com/display/revolution20/Adding+a+Custom+TV+Output+Type), decided to add the output DropDown. But here, faced with strangeness: the value of variable $value (core/model/modx/processors/element/tv/renders/web/output/dropdown.php) has a format of "value1||valueN". Where variable names are lost? This is a bug or am I doing something wrong?
Tell me how I solved my problem. Thank you.