InstallationСаму папку BlackVelvet в assets/templates закинул, а что дальше? Интуитивно зашёл в "Ресурсы->Управление ресурсами->Новый шаблон" и закинул в форму содержимое BlackVelvet.template.html, присвоил шаблону категорию default templates, но как мне его применить к сайту? Или я что-то не так сделал или не доделал? Помогите разобраться.
Upload the enclosed BlackVelvet folder to your assets/templates folder.
Make a new template and copy/paste the contents of the BlackVelvet.template.html file.
Make a new Template Variable named sidebar. Give your new template access by checking the box at the bottom. Use either textarea or rich text for the input type, and make the default value either default content for the sidebar, or use the @INHERIT binding so that you can edit it in a folder/document and all that folder’s children will inherit that content.
Make another new TV named footer and put your footer content in it.
This template uses the DropMenu snippet, but it can just as easily use the Wayfinder snippet, which can be downloaded from the MODx download repository.
1. Copy the contents of the file snippet.wayfinder.tpl.php into a new snippet named Wayfinder.Но когда я во вкладке "Модули" тыкаю Wayfinder, то появляется это:
2. Create a new folder under assets/snippets named wayfinder.
3. Copy the file wayfinder.inc.php into the newly created folder.
Parse error: syntax error, unexpected ’<’ in X:\home\test1.ru\www\manager\processors\execute_module.processor.php(98) : eval()’d code on line 1Что делать? Т_Т
Но когда я во вкладке "Модули" тыкаю Wayfinder, то появляется это:
[[DropMenu? &startDoc=`62` &levelLimit=`1` &topnavClass=`topMenu` & removeNewLines=`true`]]Так как вместо DropMenu я использую Wayfinder, то вместо неё я вставляю строку:
[[!Wayfinder? &startId=`0`!]]Вставляю её как в самом html-файле, так и в коде самого шаблона в управлении ресурсами.