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
| //MODX SEO-strict — Заменяем base href на link rel canonical | |
| //==================================================== | |
| $resourceId = $modx->resource->get('id'); | |
| if (!$resourceId) { return ''; } | |
| /** @var string|array $args */ | |
| $args = ''; | |
| if (!empty($scriptProperties['args'])) { | |
| $args = $scriptProperties['args']; |
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
| 1. Создание нового пользователя и назначение прав | |
| Переходим в меню: "Настройки" > "Контроль доступа" | |
| Переходим на вкладку "Политики доступа" | |
| Копируем "Content Editor", редактируем и называем новую политику "Менеджер" | |
| --- Устанавливаем разрешения: | |
| Установить галку "Изменять права доступа (chmod) к каталогам" | |
| Установить галку "Создавать каталоги в файловой системе" | |
| Установить галку "Получать список подкаталогов для каталога в файловой системе" |
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
| --- Самые популярные и наиболее часто используемые дополнения для MODx: | |
| Ace - редактор кода MODx; | |
| Collections - отображение и управление коллекциями ресурсов; | |
| pdoTools - набор базовых инструментов MODx; | |
| FormIt - работа с формами в MODx; | |
| phpThumbOf - работа с изображениями в MODx; | |
| TinyMCE / CKEditor (на выбор) - текстовый WYSIWYG редактор для MODx; | |
| translit - транслитерация URL в MODx; | |
| MIGX - Добавляемые дополнительные поля в MODx; |
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
| Разграничение доступа на основе политик и принадлежности пользователя к группе. | |
| Разграничение уровней доступа внутри группы при помощи ролей (чем выше роль - тем больше прав). | |
| Разграничение доступа к ресурсам при помощи групп ресурсов | |
| Разграничение доступа к файлам при помощи источников файлов |
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
| НАСТРОЙКИ | |
| Транслит | |
| Дружественные URL (ЧПУ) | |
| Название сайта | |
| Страницы ошибки (404) | |
| Главная страница сайта | |
| Временная зона по-умолчанию | |
| Настройка отладки | |
| Максимальный размер загружаемых файлов | |
| Настройка панели управление. Формат отображение дат и временни |
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
| Tabs: | |
| [ | |
| {"caption":"Tab Title", "fields": [ | |
| {"field":"title","caption":"Name"}, | |
| {"field":"description","caption":"Description","inputTVtype":"textarea"}, | |
| {"field":"imageTV","caption":"Photo","inputTV":"imageTV"} | |
| ]} | |
| ] | |
| Table: |
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
| {% capture page_url %}{{ page.url | remove: "index.html" }}{% endcapture %} | |
| {% assign url_parts = page_url | split: '/' %} | |
| {% capture index %}{{ url_parts.size | minus:1 }}{% endcapture %} | |
| {% if page.categories %} | |
| {% for menu in site.menu %} | |
| {% if index == '1' and menu.url == page_url %} | |
| <title>{{page.title}} - {{site.title}}</title> | |
| {% endif %} | |
| {% if index == '2' and page_url contains menu.url %} | |
| <title>{{page.title}} - {{menu.name}}</title> |
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
| RewriteCond %{HTTP_HOST} . | |
| RewriteCond %{HTTP_HOST} www.placeburg.com [NC] | |
| RewriteRule (.*) http://placeburg.com/$1 [R=301,L] | |
| RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(htm(l)?|php)\ HTTP/ | |
| RewriteRule ^(([^/]+/)*)index\.(htm(l)?|php)$ http://placeburg\.com/$1 [R=301,L] |
NewerOlder