This file contains hidden or 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
User-agent: * | |
Allow: / | |
Disallow: /manager/ | |
Disallow: /assets/components/ | |
Disallow: /core/ | |
Disallow: /connectors/ | |
Disallow: /index.php | |
Disallow: /search | |
Disallow: /profile/ | |
Disallow: *?* |
This file contains hidden or 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
<table class="table table-border"> | |
<tr> | |
<td>№</td> | |
<td>Ссылка и заголовок</td> | |
<td>seo title</td> | |
<td>seo description</td> | |
</tr> | |
[[!pdoPage? | |
&element=`pdoResources` |
This file contains hidden or 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
Формат записи фильтров в pdoResources — чистый JSONxPDO, т.к. для этого используется JSONxPDO-параметр &where: | |
Проверка по типу документа | |
&where=`{"class_key":"modDocument"}` | |
rtfm.modx.com/display/xPDO20/xPDOQuery.where | |
`{«tv1»:«5»}` |
This file contains hidden or 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
const asyncInterval = async (callback, ms, triesLeft = 5) => { | |
return new Promise((resolve, reject) => { | |
const interval = setInterval(async () => { | |
if (await callback()) { | |
resolve(); | |
clearInterval(interval); | |
} else if (triesLeft <= 1) { | |
reject(); | |
clearInterval(interval); | |
} |
This file contains hidden or 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
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover"> | |
<title>[[*seotitle:default=`[[*pagetitle]]`]] - [[++site_name]]</title> | |
<meta name="description" content="[[*introtext:default=`[[*pagetitle]]. Официальный дилер. Гарантия.`]]"> | |
<meta name="keywords" content="ключевое слово 1, ключевое слово 2, ключевое слово 3"> | |
<meta name="author" content="Название компании"> | |
<meta name="robots" content="index, follow"> |
This file contains hidden or 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
snippet cache_chunk | |
<?php | |
$cache_key = "chunk_".$name; | |
$output = $modx->cacheManager->get($cache_key); | |
if (empty($output)) { | |
$output = $modx->getChunk($name, $scriptProperties); | |
$modx->cacheManager->set($cache_key,$output); |
This file contains hidden or 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
name:required:regexp=^/[^А-я]/^ | |
phone:required:minLength=^7^ | |
mess:antispam | |
g-recaptcha-response:required` |
This file contains hidden or 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
<offer id="[[+idx]]" available="true"> | |
<name>[[+pagetitle]] [[+article]]</name> | |
<url>https://station-centre.ru/[[~[[+id]]]]</url> | |
<price from="true">[[!+price:replace=` ==`]]</price> | |
<vendor>vendor</vendor> | |
[[+old_price:gt=`[[+price:replace=` ==`]]`:then=`<oldprice>[[+old_price:replace=` ==`]]</oldprice>`:else=``]] | |
<currencyId>RUR</currencyId> | |
<available>true</available> | |
<sales_notes>delivery, other pros etc.</sales_notes> | |
<categoryId>[[+parent]]</categoryId> |
This file contains hidden or 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
<meta property="og:locale" content="ru_RU" /> | |
<meta property="og:type" content="article"> | |
<meta property="og:site_name" content="[[++site_url]]"> | |
<meta property="og:title" content="[[*seotitle]]"> | |
<meta property="article:section" content="[[#[[*parent]].longtitle]]"> | |
<meta property="article:modified_time" content="[[*publishedon]]"> | |
<meta property="og:url" content="[[*id:is=`1`:then=`https://giftforanyone.ru/`:else=`[[++site_url]][[*uri]]`]]"> | |
<meta property="article:author" content="[[#[[*author]].pagetitle]]"> | |
<meta property="og:description" content="[[*description:default=`[[If? &subject=`[[*description]]` &operator=`empty` &then=`[[*pagetitle]]` &else=`[[*longtitle]]`]]`]] extra content."> | |
<meta property="og:image" content="[[++site_url]][[*picture]]"> |
This file contains hidden or 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
<meta charset="utf-8"> | |
<title>[[*seotitle:default=`[[*pagetitle]]`]] - [[++site_name]]</title> | |
<meta name="description" content="[[*introtext:default=`[[*pagetitle]]. Официальный дилер. Гарантия.`]]"> | |
<base href="[[!siteurl]]" /> | |
<link rel="canonical" href="[[!siteurl]][[*url]]"/> |
NewerOlder