Share » Forums » Setup & design » Suffle operator - Link on the image...

Suffle operator - Link on the image randomly selected

Suffle operator - Link on the image randomly selected

Monday 19 December 2005 7:35:11 pm - 2 replies

Author Message

Björn Dieding@xrow.de

Tuesday 20 December 2005 12:39:23 am

have you tried this? I useally don't work with the property name of a section

so it should be either {$random.node_id} or {$random:item.node_id}.... the first element is alwys in this kind of fetch an object of ezcontentobjecttreenode

Try this too

{section loop=$randomised_array max=3}    
 <a href={$:item.node_id}>

 

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Chris Lan

Tuesday 20 December 2005 7:34:08 pm

Hi Björn,

Thank you for your answer! I just added the concat and it works just perfect. Thanks again!

Chris

<a href={concat('/content/view','/full/',$:item.node_id)|ezurl}> <img src={$random:item.object.data_map.image.content[medium].full_path|ezroot} align="center" border="1"></a>  

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

36 542 Users on board!

Forums menu