Jaxel
Well-known member
In XF1, I could put in my form:
This would be a select dropdown with a list of forums. As you select the forum in the second select box, the TitlePrefix JS would fetch that forum's prefixes and use them to populate the first select box. I could not find an equivalent function for this in XF2.
HTML:
<select name="prefix_id" id="prefix_id" class="textCtrl autoSize TitlePrefix"
data-nodecontrol="#node_id"
data-prefixurl="{xen:link forums/-/prefixes}">
<xen:include template="title_prefix_edit_options" />
</select>
<select name="node_id" id="node_id" class="textCtrl autoSize">
<option value="0">({xen:phrase select_forum})</option>
<xen:foreach loop="$forums" value="$forum">
<option value="{$forum.node_id}">{$forum.title}</option>
</xen:foreach>
</select>
This would be a select dropdown with a list of forums. As you select the forum in the second select box, the TitlePrefix JS would fetch that forum's prefixes and use them to populate the first select box. I could not find an equivalent function for this in XF2.