We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40984
    • 3 Posts
    Hi all!
    I`m testing Rowboat snippet and I find it very useful. But I`m stuck on making rowboat show something like "show more from db" link.

    Snippet code (show less from db):
    [[!getPage?
       &element=`Rowboat`
       &table=`custom_contacts`
       &sortBy=`name`
       &totalVar=`rowboat.total`
       &tpl=`myDoodle`
       &cache=`0`
       &limit=`6`
    
    ]]
    <div class="paging">
    <ul class="pageList">
      [[!+page.nav]]
    </ul>
    </div>


    Chunk "myDoodle" code:
    <li><a href="[[!selfLink?
       &element=`Rowboat`
       &table=`custom_contacts`
       &tpl=`moreDoodle`
       &cache=`0`
       &limit=`1`
       &columns=`{"id":"[[+id]]"}`]]">More</a> [[+name]], [[+telephone]]</li>



    With this chunk a want to be able to click more and use moreDoodle tpl to see name, telephone, description, address ad so on in this id.

    Thank you for every advice and sorry for my English:-)
      • 3749
      • 24,544 Posts
      I think you would have to either use JavaScript to reveal the hidden info or redirect to another page where the info is shown. The JavaScript would be easier, IMO.



      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Some JQuery AJAX would be pretty nice here. Using their load() function makes AJAX easy.
          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
          • 40984
          • 3 Posts
          redirect to another page
          - how to do that? I would rather not tu use JavaScript.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            You'll need a snippet, using the id as a property, and the snippet would redirect depending on what the passed id property is.
              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
              • 40984
              • 3 Posts
              Ok,I will try this, thank you Susan;-)