Share » Forums » Setup & design » images in menus depending on node

images in menus depending on node

images in menus depending on node

Monday 04 April 2005 4:43:02 pm - 1 reply

Author Message

Arran Price

Tuesday 05 April 2005 4:39:26 pm

We change the image dependant on node with the following (editted) code.

{set mynode=$module_result.node_id}

{section show=$mynode|eq('121')}
   {set section_image=1176}
{/section}
{section show=$mynode|eq('122')}
   {set section_image=1177}
{/section}

{set sideimage=fetch( 'content', 'node', 
   		         hash( 'node_id', $section_image )
	              )
}   


{attribute_view_gui attribute=$sideimage.object.data_map.image image_class=sideimage css_class=content-image-section}

Hope that helps.

Arran

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

36 542 Users on board!

Forums menu