We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9575
    • 19 Posts
    Is it possible to skip the first x characters of the content using Ditto? I need to get rid of the <p> that TinyMCE adds at the beginning of the content. I’m using the summarize extender so I really need to offest the start of [+summary+] by 3 characters. I’ve tried truncOffset but that doesn’t seem to do anything to my summary. Is this something that Ditto can do?? I thought I saw something yesterday when I was searching for something else but I cannot seem to find the post again or anything that relates to what I am trying to do.

    Here’s my call:

    [!Ditto? &parents=`17` &tpl=`CILHPItemBig` &dateSource=`tvNewsFeedDate` &dateFormat=`%a %e %b %Y` &display=`1` &summarize=`1` &trunc=`1` &truncAt=`<!-- splitter_big -->` &extenders=`summary` &sortBy=`tvNewsFeedDate` &sortDir=`DESC` !]


    And my Chunk:

    <p class="news_headline"><a href="/[+alias+]" class="news_headline">[+longtitle+]</a></p><p class="news"><img src="/[+DocumentBigImage+]" alt="[+longtitle+]" align="left">[+summary+]</p>


    P.S. I know you can turn off the leading <p> in TinyMCE and this would solve my problem but in turn it would also cause another as the leading <p> is required for the full page version of the content.