<form method="POST" class="form" action="[[~[[*id]]]]"> <select> <option>Sport</option> <option>Cars</option> </select> <input type="submit" value="Send" /></form>
<form method="POST" class="form" action="[[~[[*id]]]]"> <select> <option>SportCars</option> </select> <input type="submit" value="Send" /></form>
$collection = $modx->getCollection('modResource',array('template' => 4)); foreach ($collection as $collect){ $mytitle.=$collect->get('pagetitle'); $list = "<option>". $mytitle. "</option>"; $modx->setPlaceholder('list',$list); } return;
<form method="POST" class="form" action="[[~[[*id]]]]"> <select> [[+list]] </select> <input type="submit" value="Send" /></form>
This question has been answered by Bruno17. See the first response.
$collection = $modx->getCollection('modResource',array('template' => 4)); $list = ''; foreach ($collection as $collect){ $mytitle = $collect->get('pagetitle'); $list .= "<option>". $mytitle. "</option>"; } $modx->setPlaceholder('list',$list); return;