On this page... (hide)

Warning

When using an in style method for filtering your news output you have to be aware that the profile filtering may get messed up.

Example - You want to show the five most recent news items that are in the past.Your profile sorts the items with the newest items first. Your profile filters by five items. You use the code above in your style.

If you have five future items Coranto will output an empty profile.txt file. Why? All five of the newest items were filtered by the perl code in your style. You will have to use a counter to let you know when you have reached five items.

See Implementating and Using Item Counters in a Coranto Style for information on counters.




Page last modified on February 02, 2009, at 07:25 AM