We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12796
    • 5 Posts
    Can I tell Ditto kind of:
    [[Ditto? parents=`this_documents_child_folder_named_related` &tpl=`tpl_related`]] ?

    My newbie concept:
    Page related content is in folders called ’related’ and doesn’t show up in the navigation. Ditto gets titles and 100 first chars for the previews and creates a read_more_link

    Tree concept:
    - root
    -- page_1 (regular page, nav_item)
    --- related_2_page_1_folder
    ---- related_4_all (reg. page, not nav_item)
    ---- related_4_members
    -- page_2 (reg. page, nav_item)
    --- related_2_page_2_folder
    ---- related (..an so on)
    -- page_3 (..an so on)
    -- related_2_all_folder
    --- related_4_all
    --- related_4_members

    .. or is there a smarter way in MODx to achieve my goal?

    Could you please point me in a direction with code examples?
      • 18397
      • 3,250 Posts
      What about using tags to define related content?
        • 12796
        • 5 Posts
        I’m looking for a way to define once: Find parts of related content for this page in (sub)folders called eg. ’related’, if their content matches further criteria.
        This call should be in the template and work for every future new page in the tree structure. How can I achieve that
        without updating the parents_id_list of the Ditto call manually?

        Code examples?
          • 18397
          • 3,250 Posts
          What you describe seems to be perfect for tags. Tagging is primarily used to describe related content and Ditto handles tags with ease. For a detailed tutorial watch the screencast here: http://ditto.modxcms.com/screencast/tagging.html