Thursday 24 March 2005 6:25:36 am
I've a custom class called "banner", this class allows to publish a image as a banner, in this class I make checkbox attribute for active or inactive the banner. How can I fetch the content if this attribute's class is checked? my code is this:
{let randomised_array=fetch('content','tree', hash('parent_node_id', '223',
class_filter_type, "include", class_filter_array, array(31)))|shuffle}
{section name=random loop=$randomised_array max=1}
<img src={$random:item.object.data_map.banner.content[original].full_path|ezroot} border="0">
{/section}
{/let}
Antica Bottega Digitale srl
http://www.abd.it
|