We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16355
    • 5 Posts
    Hi,
    I’m trying to News all my Documents also in Subdirectories.
    I’ll try to explain it...:
    Document Tree:
    * First Directory
    --*Subdirectory 1
    - Document 1
    - Document 2
    --*Subdirectory 2
    - Document 1
    - Document 2
    * Second Directory

    So, now if i go to the First Directory, then I wan’t to get a kind of ListMenu with links to my Documents.
    like this:
    Subdirectory 1
    - Document 1
    - Document 2
    Subdirectory 2
    - Document 1
    - Document 2


    Can anybody help me?
    Thanks a lot,
    Christian

    ( Sorry for my bad english ;-) )
      • 25663 MODX Staff
      • 12,272 Posts
      Which part are you having difficulty with: Creating the articles in the right place via NewsPublisher or creating a call to DropMenu or Newslisting to display them?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 16355
        • 5 Posts
        I’ve difficulty with creating a Newslisting.I’ve tried it with "[!NewsListing? &summarize=`0`!]", but the output is just Subdirectory 1 + 2.

        Thanks
          • 18397
          • 3,250 Posts
          Right now NewsListing cannot handle subdirectories but we are working on it.
            • 16355
            • 5 Posts
            Is there any workaround?

            I tried to use 2 NewsListing ("[!NewsListing?StartID=’1’ &summarize=`0`!]" + "[!NewsListing?StartID=’2’ &summarize=`0`!]"), but that leads to an error...

            or can I built a DropMenu which creates this? (I’ve just managed to get an output with all Directorys (not only Directory 1)).

            Wish you good luck in fixing this "problem" smiley
              • 18397
              • 3,250 Posts
              No, there are no current workarounds if you plan on using the NewsListing snippet.
                • 32241
                • 1,495 Posts
                will that be possible with dropmenu? Never done it, but there might be a way, by hacking into the snippet.
                  Wendy Novianto
                  [font=Verdana]PT DJAMOER Technology Media
                  [font=Verdana]Xituz Media
                  • 18397
                  • 3,250 Posts
                  Please vote for the API addition GetAllSubDocs in the following thread if you wish NewsListing to have support for subdirectories:

                  http://modxcms.com/forums/index.php/topic,1827.msg12526.html#msg12526
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Quote from: kritiriti at Dec 13, 2005, 01:04 PM

                    I tried to use 2 NewsListing ("[!NewsListing?StartID=’1’ &summarize=`0`!]" + "[!NewsListing?StartID=’2’ &summarize=`0`!]"), but that leads to an error...

                    What error? You should be able to use it all you like with no errors.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 25663 MODX Staff
                      • 12,272 Posts
                      StartID should be startID, I think, though.
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me