We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13594
    • 2 Posts
    hello.

    I’m having trouble with a ditto call for Treasure Chest. I’ve followed Terry’s notes on Treasure Chest and I’m wanting to create a summary page of the products I’ve got available.

    This is my ditto call:
    [[Ditto? &startID=`12` &summarize=`5` &tpl=`catalog4tpl` &extenders=`summary` &trunc=`1` &truncSplit=`0` &truncLen=`50` &truncOffset=`10` &truncText=`Learn More About` &sortBy=`page_title` &sortDir=`DESC` ]]

    I’m wanting it to limit the number of words that the ditto call is retrieving from [+introtext+]; but at the moment its returning all the text from the introtext bit.


    Any suggestions? Should I give up and try PHx word_limit?

    Any help would be appreciated. Cheers!
      • 36592
      • 970 Posts
      What is the content of "catalog4tpl" template chunk ?
        • 13594
        • 2 Posts
        <div class="ecommerce_item" id="ditto_item_[+id+]">
        <div class="introText">[+content+]</div>
        <h4><a href="[~[+id+]~]">Go to product listing</a></h4>
        </div>

        taken mostly from Terry’s treasure chest notes..re-arranged a bit to suit my needs.
          • 36592
          • 970 Posts
          Try change this...
          <div class="introText">[+content+]</div>

          to this.
          <div class="introText">[+summary+]</div>