Hi all,
I am trying to apply a different template to items inside my #initslot call but I do not know which method to use. Can anybody let me know if you have done this before and how?
Cheers
Valérie
Here is my code:
#set($slotname = “icrcSlotRelated”)##
#set($slotparams = “template=defaulttemplate”)##
#initslot($slotname $slotparams)##
#if ($sys.part.render)##
#if($sys.currentslot.slot)##
#__addAaSlotImg($slotname)##
#__startAaSlotDiv($slotname)##
#if($sys.currentslot.relresults.size() > 0)##
#set($count=$sys.currentslot.relresults.size())##
#foreach( $relresult in $sys.currentslot.relresults)##
#__startAaSnippetDiv($relresult $slotname)##
#__addAaSnippetImg($relresult $slotname)##
#if($velocityCount==1)##
############################
##use defaulttemplate for the first item
############################
#slotItem($relresult)##
#else##
############################
## here change “template = secondtemplate” ???
## use the second template for remaining items
############################
#slotItem($relresult)##
#end##
#__endAaSnippetDiv()##
#end##
#end##
#__endAaSlotDiv()##
#end##
#end##
#endslot($slotname)##