We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30593
    • 119 Posts
    Не могу понять как реализовать то, что написано в уроке http://ditto.modxcms.com/tutorials/wordpress-style-archives.html в английском я слаб(

    1)Copy the following call to where you would like your archive displayed
    [!Reflect?config=`wordpress` &targetID=`5` &getDocuments=`1` &dittoSnippetParameters=`parents:5`&id=`main`!]


    2)Change the 2 in parents:5 to the container holding your documents

    3)Create a new document with the following content:
    <h2>[+wp_month+] [+wp_day+] [+wp_year+]</h2>
    [!Ditto? &id=`main` &extenders=`dateFilter` &parents=`5`!]


    Make sure you change the 2 in &parents=`5` to the container holding your documents

    4)Change &targetID=`5` in the Reflect call to reference the id of the new document.
      • 30593
      • 119 Posts
      Я вставил эти параметры в шаблон папки блога
      <p><a class="style">[!Reflect?config=`wordpress` &targetID=`5` &getDocuments=`1` &dittoSnippetParameters=`parents:5`&id=`main`!]
      <h2> [+main_month+] [+main_day+] [+main_year+]</h2>
      [!Ditto? &id=`main` &extenders=`dateFilter` &parents=`5`!]</a></p>

      получил следующее:
      ......
      ......
      белиберда какае-то!
        • 30593
        • 119 Posts
        Спасибо iJack с http://community.modx-cms.ru - перевел! Может кому понадобится:
        1) Скопировать тот вызов в то место, где вы хотите отображать архивный список (тот что на картинке внизу)
        2) В этом вызове сниппета не забыть заменить в dittoSnippetParameters=`parents:2` цифру на ИД вашего документа-контейнера с новостями/постами.
        3) Создайте новый документ с указаным содержимым
        не забываем в &parents=`2` поставить ту же цифру, что выше.
        4) В &targetID=`2` самого первого вызова Рефлекта вписываем ИД только что созданного документа с вызовом Дитто.