We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49710
    • 92 Posts
    Hi,

    how can I list all childs (the page titles) from a specific resource?

    And the 2nd question: Is ist possible to list that children in a TV?
      • 9995
      • 1,613 Posts
      with ditto.

      [[Ditto?
      &parents=`1`
      &total=`all`
      &showPublishedOnly=`1`
      &showInMenuOnly=`0`
      &orderBy=`menuindex ASC`
      &noResults=` `
      &tpl=`ditto-tpl`
      ]]


      parents is the resource with children into it.
      ditto-tpl chunk looks like this:

      <a href="[~[+id+]~]">[+pagetitle+]</a><br>


      into a TV? all I know you can select chunks with a TV dropdown.
        Evolution user, I like the back-end speed and simplicity smiley
        • 49710
        • 92 Posts
        Thank you. Yes I want the children into a TV Dropdown.
          • 9995
          • 1,613 Posts
          If I'm correct you need to add a TV with:

          Input Type:
          Dropdown List menu

          Input Option Values:
          First choise=={{chunk1}}||Secons choise=={{chunk2}}||Third choise=={{chunk3}}

          When you add the TV into your template or chunk or where ever it will output the chunk which is chosen.
            Evolution user, I like the back-end speed and simplicity smiley
            • 49710
            • 92 Posts
            Got it:
            @SELECT pagetitle FROM modx_site_content WHERE parent = 123


            will do it.