I am basically looking for a way to adapt the (Item) Menu to be available on the SingleBody.tpl.
Any Suggestions??
{if !empty($child.itemLinks)}
<select onchange="{literal}javascript:if (this.value) { newLocation = this.value; this.options[0].selected = true; location.href= newLocation; }{/literal}">
<option label="{if $child.canContainChildren}{g->text text="& album actions &"}{else}{g->text text="& item actions &"}{/if}" value="">{if $child.canContainChildren}{g->text text="& album actions &"}{else}{g->text text="& item actions &"}{/if}</option>
{foreach from=$child.itemLinks item=link}
<option label="{$link.text}" value="{$link.url}">{$link.text}</option>
{/foreach}
</select>
{/if}
Posts: 8601
i think it's $layout.itemLinks not $child.itemLinks
and you don't need the $child.canContainChildren check.. it is false. if the item can contain children then it will use albumBody.tpl.