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


    I’m puzzling with truncating AND characters encoding giving BAD code not valid. undecided

    I tried to use first
    [+summary+]
    in a Ditto chunk to output the first 35 words or 90 char., and it seems to work, but all accentuated and other specifics characters are outputted like entities (& é etc.) so the page is not valid.
    depending on the length of the remaining text : sometimes accents are ok, sometime the same letter is displayed as entities huh huh



    I also tried instead of+summary to use directly in the tpl
    [+content:word_limit=`30`+]   

    But in this case html code is truncated too and validity is worst.

    the call is :
    [[Ditto? &parents=`2` &display=`2` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &truncSpli=`0` &truncLen=`90` &paginateAlwaysShowLinks=`1` &tagData=`documentTags` &dateSource:date=`%a` &dateSource:month=`%b` &dateFormat=`%d/%m/%Y` &language=`francais-utf8` &truncText=`lire la suite...` &tplPaginatePrevious=`ditto.paginate.prev.tpl` &tplPaginateNext=`ditto.paginate.next.tpl`]]


    I’d like also to understand what is &truncLen=`90` vs &truncOffset=`85` ?

    Thank you


    [edit] If is use only &truncOffset=`85` and NO &trunclen in the call, code is valid again ... huh
      Schtroumpf Grognon - Grouchy Smurf
      ---------------------------------
      Faites pas attention.. - Don't pay attention
      http://www.dzi-neo.net