We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36434
    • 33 Posts
    can somebody help me with this?

    I have two buttons

    I want to make a accordion menu out of it, with the first button active.

    and my second button its content should be linked to a document (only the [ content ] section of it, not the template)

    please check out the attachment

    please help me with this kind of matter

    regards,
    Rob
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      If you're using Revo you should be able to use getResource() to fetch the content of the desired document or the getField snippet or you could use a TV with @DOCUMENT binding.
        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
        • 36434
        • 33 Posts
        I'm using, 0.9.6.3 rev 4565

        <div id="firstpane" class="menu_list">
          <p class="menu_head">Button 1</p>
            <div class="menu_body">

        {{chunk with text}}
            </div>
          <p class="menu_head">Button 2</p>
            <div class="menu_body">

        ? {+content+] from document ID ?
            </div>
        </div>