Can you provide a little more detail as to how to edit the file? Let's say I wanted to add in a Rotate Image command to the item actions pulldown, where would I put the code? From looking at the tpl file, it's pulling data out of $theme.itemLinks to populate the pulldown menu. So I'm not sure what the code would actually look like to place the Rotate Image command in there.
Thanks
WEB11
Joined: 2007-07-10
Posts: 4
Posted: Tue, 2007-07-10 23:32
Can i use this to achieve what I describe on the post bellow?
It probably would achieve what you are trying to do. If you could limit it so that it only showed the add item link. But figuring out how to add or remove items from the pulldown menu I haven't been able to figure out. I know that it's pulling in data from the $theme.itemLinks to decide what to populate the pulldown menu with, but haven't figured out how to change what's in the $theme.itemLinks.
Posts: 27300
Edit:
gallery2/modules/core/templates/blocks/ItemLinks.tpl
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Thanks.
I added this code:
{/foreach}
<option label="label" value="value">New item</option>
</select>
The new item appears in both album actions and item actions. I just want it to appear in the item actions list. Is this possible?
//andersjo
Posts: 4
{if not $item.canContainChildren}<option label="label" value="value">New item</option>{/if}
Posts: 27300
{if !$item.canContainChildren}.....
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 50
Can you provide a little more detail as to how to edit the file? Let's say I wanted to add in a Rotate Image command to the item actions pulldown, where would I put the code? From looking at the tpl file, it's pulling data out of $theme.itemLinks to populate the pulldown menu. So I'm not sure what the code would actually look like to place the Rotate Image command in there.
Thanks
Posts: 4
Can i use this to achieve what I describe on the post bellow?
http://gallery.menalto.com/node/66679
Posts: 50
It probably would achieve what you are trying to do. If you could limit it so that it only showed the add item link. But figuring out how to add or remove items from the pulldown menu I haven't been able to figure out. I know that it's pulling in data from the $theme.itemLinks to decide what to populate the pulldown menu with, but haven't figured out how to change what's in the $theme.itemLinks.