Share » Forums » Setup & design » Filter and sort mixed content class

Filter and sort mixed content class

Filter and sort mixed content class

Tuesday 08 February 2005 4:55:13 am - 2 replies

Author Message

Arran Price

Tuesday 08 February 2005 10:31:44 am

Hi Olivier,
You mention using 'list' rather than 'tree' in your fetch so does that mean you are only looking for content in one folder?

I wouldnt class my self as very experienced with ezpublish but heres a few ideas off the top of my head.

Fetch all results and only display the ones that have the is_new set.
eg

{section show=$item.whatever.is_new|eq(true)}
   <p>some code to display whatever I want</p>
{/section}

Without testing - I dont know what the actual syntax for $item....is_new is..

Do what you were intending with the fetch per class but change the way you display it, ie group the items in the way you display them so you dont have to worry about merging your arrays etc (although if you do merge the arrays successfully I would love to see the code you use).
your output could be something like:
New Articles:
article1
article2

New Files:
file1
file2

etc

Hope thats of some help

Arran

Olivier Pierret

Wednesday 09 February 2005 8:19:26 am

"Hope thats of some help" :)

That is exactly the answer I needed. Already in place and working... Thank you so much.

Well... actually I feel a bit stupid now...

Olivier

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu