This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Вызов формы | |
[!AjaxSearch? &ajaxSearch=`0` &landingPage=`22` &tplInput=`search_form` &parents=`in:5` &tplResult=`search_result` &showResults=`0`!] | |
Страница поиска | |
<ul class="search_list">[!AjaxSearch? &ajaxSearch=`0` &parents=`in:5` &pagingType=`0` &showInputForm=`0` &tplResult=`search_result` &extractLength=`500` &grabMax=`10` &showInputForm=`0` !]</ul> | |
чанк search_form | |
<div class="navSearch"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('content-type: image/jpeg'); | |
// Should be a safe image repository if you | |
// need to make sense. | |
$dirprefix = "http://sitename.com/"; | |
$watermark = $dirprefix."/assets/images/watermark.png"; | |
$image = $dirprefix.$_REQUEST['src']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[Wayfinder? &startId=`[*parent*]` &excludeDocs=`6,7` &includeDocs=`5,6` &level=`3` &outerTpl=`outerTpl` &rowTpl=`rowTpl` &innerTpl=`innerTpl` &innerRowTpl=`innerRowTpl` &hereClass=`hereClass` &ignoreHidden=`1` ]] | |
outerTpl | |
<ul[+wf.classes+]>[+wf.wrapper+]</ul> | |
rowTpl | |
<li[+wf.id+][+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
В методе function Register в классе webloginPe просто | |
1. Напишите вместо строки | |
<code>$username = $_POST['username'];</code> | |
строку | |
<code>$username = $modx->db->escape($modx->stripTags($_POST['email']));</code> | |
2. Закомментируйте кусок кода чуть ниже (валидация username) | |
<code>if (!ctype_alnum($username)) | |
{ | |
return $this->FormatMessage($this->LanguageArray[32]); | |
}</code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
В методе function Register в классе webloginPe просто | |
1. Напишите вместо строки | |
<code>$username = $_POST['username'];</code> | |
строку | |
<code>$username = $modx->db->escape($modx->stripTags($_POST['email']));</code> | |
2. Закомментируйте кусок кода чуть ниже (валидация username) | |
<code>if (!ctype_alnum($username)) | |
{ | |
return $this->FormatMessage($this->LanguageArray[32]); | |
}</code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Вызов формы | |
[!AjaxSearch? &ajaxSearch=`0` &landingPage=`22` &tplInput=`search_form` &parents=`in:5` &tplResult=`search_result` &showResults=`0`!] | |
Страница поиска | |
<ul class="search_list">[!AjaxSearch? &ajaxSearch=`0` &parents=`in:5` &pagingType=`0` &showInputForm=`0` &tplResult=`search_result` &extractLength=`500` &grabMax=`10` &showInputForm=`0` !]</ul> | |
чанк search_form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[DLcrumbs? | |
&ownerTPL=`@CODE:<ul class="inline bcrumb">[+crumbs.wrap+]</ul>` | |
&tpl=`@CODE:<li><a href="[+url+]">[+e.title+]</a></li>` | |
&tplCurrent=`@CODE:<li class="active">[+e.title+]</li>` | |
&showCurrent=`1` | |
]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[Ditto? &tpl=`category_tpl` &parents=`[*id*]` &display=`all` &orderBy=`menuindex ASC`]] | |
фильтрация по TV чекбоксу | |
[!Ditto? &tpl=`brand_item` &tplLast=`brand_item_last` &where=`@SQL: AND (tvc.tmplvarid = '26' AND tvc.value = 'Да')` &parents=`17` &display=`all` &noResults=`Таких брендов нет` &orderBy=`menuindex ASC`!] | |
[!Ditto? &tpl=`item_catalog_TPL` &documents=`[!filter? &pageId=`[*id*]` &mode=`2`!]` &noResults=`По заданным параметрам ничего не найдено!` &display=`all` &orderBy=`menuindex ASC`!] | |
[+ditto_class+] С версии 2.1.1. Выводит классы even/odd, first/last и current | |
[+ditto_iteration+] Порядковый номер полученного документа в пределах текущей страницы |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[DocInfo? &docid=`2` &field=`phone1`]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$params = array('docid' => $id, 'field' => 'pagetitle'); | |
$pagetitle = $modx->runSnippet('DocInfo', $params); |
OlderNewer