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

index_news plugin

ez
#21198 2009-11-25 17:33
Hi Dayver,

This also works thnx....

There is one difference if you have got pagination on, on every new page the first 2 will display
the page_row_text...
My setup only show the first 2 newest articles full text...
On every next page it will stay 'minified' (this is different from your setup)

But your option is worth concidering, because my option will need coding in the news plugin..
On the other hand, the coding I did was SO small, that it still could be usefull... to add
to the cotonti system..

If you do not use pagination (Dayver's option is the best way ;))


//===========================================================================
Edit: IDEA.. I have to adjust my thinking, i have got an even better idea thnx too Dayver
//===========================================================================

what if we do this. Only change the PAGE_ROW_NUM output to:
OR make a new TAG called PAGE_ROW_NUMTOTAL that is $d+$jj

And maybe do the extra setup config... (but that is not needed you can
always hardcode the number into the TPL)
For the people who want to use pagination with a configuration, maybe this is your code:


I think it still is a nice (very small) feature to put in the standard Cotonti, but you may decide on that... :)
The idea and code is available, have fun with it..
==- I say: Keep it EZ -==
This post was edited by ez (2009-11-25 19:52, 14 years ago)