Skip to content

Instantly share code, notes, and snippets.

@rtripault
rtripault / checkLexicon.php
Created October 31, 2010 21:55
Check MODx Revolution lexicon files (by Hansek, source : http://modxcms.com/forums/index.php/topic,50565.0.html)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Updated for MODx Revo by: Hansek http://www.modxcms.cz/ [email protected]
Created for MODx Evo by : Coroico (http://modx.wangba.fr)
Short Description: Language files checking tool for MODx Revolution
Version: 1.2
Created by: Coroico (http://modx.wangba.fr)
@rtripault
rtripault / Form.tpl
Created October 31, 2010 17:08
Building an "advanced search" with MODx Revolution, SimpleSearch & getReqParam
<form class="sisea-search-form" action="[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
<fieldset>
<label for="[[+searchIndex]]">[[%sisea.search? &namespace=`sisea` &topic=`default`]]</label>
<input type="text" name="[[+searchIndex]]" id="[[+searchIndex]]" value="[[+searchValue]]" />
<select name="parent" id="parent">
<option value="0">All the website (0 = root)</option>
<option value="34">Section 1 (parent resource ID=34)</option>
<option value="27">Section 2 (parent resource ID=27)</option>
<option value="5">Section 3 (parent resource ID=5)</option>