Add content to "Item Actions" drop down

anandamd

Joined: 2008-06-26
Posts: 11
Posted: Thu, 2008-06-26 13:06

Hi All,
I want to modify the "item actions" drop down to add some of my own items, i have checked some older posts but they refer to the previous versions of Gallery. Can someone help.

Using Gallery 2 on windows xp.

Cheers
@nand

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2008-06-26 13:25

Edit /modules/core/templates/blocks/ItemLinks.tpl

	{/foreach}
<option> your new option here</option>
      </select>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
anandamd

Joined: 2008-06-26
Posts: 11
Posted: Thu, 2008-06-26 13:50

Hi Dave,
Thanks a lot for that piece of code, also could you point what code to change if i want some items like "Delete photo" not to appear in the drop down. All your time and efforts are highly appreciated.

Cheers
@nand
P.S: Thanks a million for a very very prompt reply!!! great work.

 
anandamd

Joined: 2008-06-26
Posts: 11
Posted: Thu, 2008-06-26 14:18

Hi,
i have figured it out, but don't know if its a decent way of doing it, adding the following

{foreach from=$links item="link"}
{if $link.text != 'Edit Album'}

will remove the link "Edit Album".

Although what still remains unknown (for the time being) is the actual code that is populating the drop downs on the album page and the photo page.

cheers
@nand