We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30816
    • 26 Posts
    Hello,

    in my ditto chunk I have this:
    <div class="news2">[+introtext:ifempty=`[+content+]`+]&nbsp;<a href="[~[+id+]~]"><span class="news_more">...&nbsp;<img src="assets/templates/pwsz/images/arrow_red.gif" alt="" /></span></a></div>

    I would like to change it with using word_limit like this


    if introtext is empty then Ditto must show in a call for example 100 words from content.
    How to put word limit in this chunk?


    I tried with [+content:word_limit=`100`+] but it didn’t work.
      • 36416
      • 589 Posts
      Quote from: turli at Jan 15, 2009, 09:56 AM

      I tried with [+content:word_limit=`100`+] but it didn’t work.

      I don’t think word_limit modifier is standard part of PHx, did you install it in /assets/plugins/phx/modifiers ?
        • 30816
        • 26 Posts
        problem solved.

        I had to make new snippet called phx:word_limit

        http://wiki.modxcms.com/index.php/PHx/CustomModifiers#Installation