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.
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
Posts: 27300
Edit /modules/core/templates/blocks/ItemLinks.tpl
{/foreach} <option> your new option here</option> </select>
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 11
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.
Posts: 11
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