We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26482
    • 138 Posts
    Probably pretty simple, I’m trying to show a chunk on each page which lists pages below this level. Therefore, I’m using DropMenu starting with the current docID as startDoc. However, I can’t get this to work.

    [[DropMenu? &startDoc=[*id*] ]] doesn’t work.

    Edit:

    [!DropMenu? &startDoc=[*id*] !] does work! Tricked by cached snippets!

    Next step would be toonly show this menu if (and only if) there is something to show. How would I accomplish this?

    Thank you.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Nothing will be returned if there aren’t any documents to list.
        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
        • 26482
        • 138 Posts
        Agreed, but I’m calling the DropMenu snippet in a chunk that has style in it, f.e.

        <div class="leftbox">
        [!DropMenu? &startDoc=[*id*]!]
        </div>

        The <div> (in this case with background image) still shows up. Are there any conditional statements I could use?