We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Have the advanced description in another resource. It would be logical to make it a child of the first resource. Then just make a link to the second resource. Use CSS to style the link however you want it.
    <a class="readmore" href="[[~123]]">Read More</a>
      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
      • 46886
      • 1,154 Posts
      Yes this is just what I have on my corporate site. If you want to get fancy, you can also have the extra info provided in a popup box when clicked rather than a new page, but perhaps that isn't what you need. If there are many details of the product, then a new page is probably the way to go.
      • If you are talking about a listing of summaries, using a listing snippet like getResources, then the "read more" link would be in the snippets' tpl chunk, and would use placeholders
        <a class="readmore" href="[[~[[+id]]]]">Read More</a>

        In this case, the URL of the link is generated from the resource ID of each one as it's processed by the listing snippet (getResources).
          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