directy VIP
Total posts: 51
14 Jul 2014 10:14

Hi, in my custom template i need to show a badge for new and featured items like in my old resources template.

this work in cobalt and show me the code i insert to show the badge

<?php if($item->featured): ?>    here i put  css class to show the badge

and this does not work in cobalt... probably 'isnew' is wrong

<?php if($item->isnew): ?>here i put the  css class to show the badge

Please colud you help me to find the error? thanks marco


jimie VIP
Total posts: 531
14 Jul 2014 10:29

Hello

You can use:

<?php if($item->new) echo ' your new badge here' ?>

rgds


directy VIP
Total posts: 51
14 Jul 2014 14:45

Ok... it works. thanks marco

Powered by Cobalt