Hello,
I’m searching how to trunc a introtext [+summary+] from a chunk like this:
<div id="tpl-image-div2"><img src="[+tvimage_220-170+]" width="220" height="170" align="left" /> </div>
<div id="tpl-image-div3"><a href="[~[+id+]~]">[+title+]</a></div>
<div id="tpl-image-div4">[+tvauteur_n1+], le [+date+]</div>
<div id="tpl-image-div5"> [+summary+]... </div>
</div>
I’ve tried with PHx, Ditto (&truncOffset, &truncLen) - no luck !
My ditto call:
[!Ditto? &tpl=`tpl-menu-image` &parents=`41` &display=`1` &extenders=`summary` &trunc=`true` &truncOffset=`15` &truncLen=`120`!]
Does anybody have a solution or a snippet call that work ?
Thanks for you help
Mehdi
Scuse my english...I'm swiss
Whououu ! Oh thanks a lot for you help Alik - it works really well....!
Kind Regards,
Mehdi
Scuse my english...I'm swiss
Thank you, Alik.
Saved me some extra work. Appreciate it.
hi,
this truncate snippet is cool, but his should not be necessary as Ditto is supposed to be able to truncate into its summary pl , but it seams absolutely out of order ( however its doc is clear:
http://ditto.modxcms.com/extenders/summary.html )
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net