tpl
Последнее обновление not available | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$204 per month—let's make that $500!
Learn moreЧанк tpl SimpleSearchForm¶
Это чанк, который выводится через свойство &tpl сниппета SimpleSearchForm.
Значение по умолчанию¶
<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]]" />
<input type="hidden" name="id" value="[[+landing:default=[[*id]]]]" />
<input type="submit" value="[[%sisea.search? &namespace=`sisea` &topic=`default`]]" />
</fieldset>
</form>
Доступные плейсхолдеры¶
| Name | Description |
|---|---|
| landing | ID ресурса для показа результатов поиска. По умолчанию текущий ресурс. |
| method | Отправка через GET или POST. По умолчанию GET. |
| searchValue | Текущее значение поиска. Пусто, если поиск ещё не выполнялся. |
| searchIndex | Переменная REQUEST для параметра поиска. |
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$204 per month—let's make that $500!
Learn more










