Skip to content

Instantly share code, notes, and snippets.

@spikemanana
spikemanana / gist:940053
Created April 25, 2011 01:36
MODx Revo Custom Input Type with two fields(textfield and dropdown)
<input id="tv{$tv->id}" name="tv{$tv->id}"
type="text" class="textfield"
value="{$tv->get('value')|escape}"
{$style}
tvtype="{$tv->type}"
/>
<select id="tv{$tv->id}" name="tv{$tv->id}">
{foreach from=$tvitems item=item}
<option value="{$item.value}" {if $item.selected} selected="selected"{/if}>{$item.text}</option>
@spikemanana
spikemanana / gist:940052
Created April 25, 2011 01:33
MODx Revo Custom Input Type with two fields(textfield and combo)
<input id="tv{$tv->id}" name="tv{$tv->id}"
type="text" class="textfield"
value="{$tv->get('value')|escape}"
{$style}
tvtype="{$tv->type}"
/>
<select id="tv{$tv->id}" name="tv{$tv->id}">
{foreach from=$tvitems item=item}
<option value="{$item.value}" {if $item.selected} selected="selected"{/if}>{$item.text}</option>