Forums / Cotonti / Extensions / show only the first news items with body text

index_news plugin

ez
#21180 2009-11-24 23:15
I have a question:

In the news plugin I only want to show the first few x (1,2,3) newest items
with a PAGE_ROW_TEXT, all the other items i want to show without PAGE_ROW_TEXT

So only the newest ites are shown with a body text, the rest only (e.g. titles)


Can it be done without hacking the plugin !

Maybe with XTemplate ??

Please let me know

Added 5 hours 27 minutes later:

I have found a way to do this, BUT i have to modify the news plugin...
It would be a nice additional option.. ;)

In the configuration file:
    Show complete items: 3

If this value is smaller than maxpages then some items will NOT show the PAGE_ROW_TEXT.
I still have to test some more with this (in combination with tpl files)


Basically this will show a number off complete news items, and when they are older, then you show only the date, title, number off comments (just one line)


Maybe this option is something to put in the core ????
==- I say: Keep it EZ -==
This post was edited by ez (2009-11-25 04:42, 14 years ago)