Sunday 07 November 2010 11:21:42 am - 5 replies
Modified on Monday 08 November 2010 5:32:21 am by Lo' F.
Franck Magnan
Monday 08 November 2010 12:08:25 am
Hello Lo' F,
in your case, you put 2 "pipes" instead of one :
{$item.data_map.body.content.output.output_text|strip_tags()||shorten(300, '...')}
you may try to use only one "pipe" like this :
{$item.data_map.body.content.output.output_text|strip_tags()|shorten(300, '...')}
hope this helps
-- Developer at Open Wide
André R.
Monday 08 November 2010 1:59:42 am
Also note that there are extensions out there that does shorten a bit better on html output:
http://projects.ez.no/xmlwash
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Lo' F.
Friday 12 November 2010 12:14:20 pm
Hi Franck and Anrdre' and thanks for your reply.
...in your case, you put 2 "pipes" instead of one..
..just mistyped while reporting.. anyway...
Resolved the issue by activating wordCut extension (http://projects.ez.no/wordcut_extension) and replaced...
|shorten(300, '...')
with...
|word_cut(40)
loredanaebook.it
Steven E. Bailey
Saturday 13 November 2010 3:17:49 am
There is also http://projects.ez.no/smartshort
Certified eZPublish developer http://ez.no/certification/verify/396111 Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com
Saturday 13 November 2010 7:20:44 am
Good to know! Thank you Steven..
You must be logged in to post messages in this topic!