Here's what I'm trying to do:
I want to add some custom code so that when the featured items (which I have set to display first) have a title ex: 'Featured items'
AND
When they aren't featured I want the other (non-featured) items to have a different title ex: 'Non featured items'
So basically I'm trying achieve this by adding an if statement just before the itemListhead. The problem is I'm not sure what the correct php functions to call ? Here's what I've tried, but that do not work:
if ($item->featured)
if ($this->leading->item->featured)
if($params->get('FeaturedItems'))
if($this->leading->params->get->featured)
So, does anybody know how I can find out if an item is featured from the category page?