Forumlar / Cotonti / Support / page.list.tpl cut text

Dyllon
#1 2011-10-01 15:32

I've been looking through the administration panel, and page configuration for about an hour now, and I'm unable to locate an option to limit the amount of text displayed in page.list.tpl. Im aware it is possible through the news plugin to limit the amount of characters displayed, and I'm also aware there is a read more option.. I just don't know how to utilize it.

can anyone give me some insight?

We are what we repeatedly do. Excellence then, is not an act, but a habit.
Trustmaster
#2 2011-10-01 16:24

This size limit is the 3rd parameter of cot_generate_pagetags() function (of page module). In news plugin it is controlled by plugin configuration. In page.list 0 value is passed so it doesn't truncate.

May the Source be with you!
GHengeveld
#3 2011-10-01 23:22
You can achieve the same effect by using a callback function. Try something like {PAGE_TEXT|mb_substr($this, 0, 200)} which will truncate to 200 chars.

Bu konu GHengeveld tarafından düzenlendi(2011-10-01 23:28, 12 yıllar önce)
Dyllon
#4 2011-10-02 01:42

Thanks guys. I strongly try an avoid tampering with core files when the same thing is achievable through a template file, but both methods did work. Thanks again :)

We are what we repeatedly do. Excellence then, is not an act, but a habit.