Forums / General / Another 'Read more' question
Steven Stieng
Friday 28 May 2010 3:48:39 am
Ok, so I've created a 'red more' link. No problem. But I need to limit the number of words from the intro text.
E.g. I only want to display the first 15 words followed by '...' and then 'Read more'.
Are there any functions in eZ for this?
If not, I'm thinking of creating a function which reads the string (intro text), explodes it, and output the first 15 words.
I've already created such a function in PHP for a Wordpress template. But how would I go about doing the same using the eZ "language"?
Steven E. Bailey
Friday 28 May 2010 4:35:43 am
Take a look at http://projects.ez.no/smartshort/ - see if it fits your needs.
Certified eZPublish developer http://ez.no/certification/verify/396111 Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com
Friday 28 May 2010 4:41:25 am
That looks something that I could use.Where do I download the template? I can't see any links on the page.
André R.
Friday 28 May 2010 8:46:22 am
"Download" tab, then install as any other extension (and activate it and so on), see doc: http://ez.no/doc/ez_publish/technical_manual/4_x/installation/extensions
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
Friday 28 May 2010 9:38:15 am
There is no Download tab.I'm using Opera and I'm logged in.
All I can see on the right side is: Track changes, Latest News, Lates reviews and Lates forum activity.
In the main area there's just the template datatable (UNIX name, Owner etc) and the text body.
Friday 28 May 2010 1:49:46 pm
Try this link:
http://projects.ez.no/content/download/22958/96301/version/1/file/smartshort-1.0.zip