We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16544
    • 86 Posts
    Hi guys, have a question! First this is what I want:

    I want to have two [+link+] in my ditto pointing to the same place, meaning that if you click on any of them you will go to the article. My issue is that the ditto call won’t take more then one &truncText=`Read more`, if I add another &truncText with a different string in it, won’t show it. This is my code:
    [!Ditto? 
    &parents=`2`
    &paginate=`1` 
    &paginateAlwaysShowLinks=`0`
    &extenders=`summary` 
    &tpl=`tplBlog` 
    &orderBy=`createdon ASC` 
    &display=`2` 
    &truncText=`Read more...` 
    &dateFormat=`%b. %d, %Y`!]

    and
    <h2><a href="[~[+id+]~]">[+title+]</a></h2>
    <p>[+date+]</p>
    <p>[+summary+]</p>
    <p>[+link+]</p>
    

    Any work around? Thanks undecided
      I had fainted, unless I had believed to see the goodness of the LORD in the land of the living.
      • 33337
      • 3,975 Posts
      Only one &truncText=`Read more` is supported per ditto call.

      You can do something like this:
      <h2><a href="[~[+id+]~]">[+title+]</a></h2>
      <p>[+date+]</p>
      <p>[+summary+]</p>
      <p>[+link+]</p>
      <p><a href="[~[+id+]~]">Any other string text</a></p>
      
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 16544
        • 86 Posts
        Cool, thanks! grin
          I had fainted, unless I had believed to see the goodness of the LORD in the land of the living.