Hello/Hi/Greetings,
I want to add a custom item to the mbMenu. HOW?
BTW. NOT the Specials Menu but MENU.
Thanks
Piwigo URL: http://www.fotoarkiv.no
Last edited by BigIsland270972 (2023-02-05 00:21:51)
Offline
Offline
Offline
Hi :-)
Personal plugin
add_event_handler('blockmanager_apply' , 'add_link_perso'); function add_link_perso($menu_ref_arr){ $menu = & $menu_ref_arr[0]; if (($block = $menu->get_block('mbSpecials')) != null){ array_splice( $block->data, count($block->data), 0, array( '' => array( 'URL' => 'https://www.temmii.com/', 'TITLE' => l10n('persolink'), 'NAME' => l10n('persolink'), ))); } }
Last edited by ddtddt (2023-02-08 19:45:28)
Offline
Many Thankx for the answer :-) but i cant get it to work.
Offline
Hi :-)
sory no see your post
I delete too line !
I update code
(no possible on piwigo.com)
you can replace mbSpecials by mbMenu
Offline
ddtddt wrote:
Hi :-)
sory no see your post
I delete too line !
I update code
(no possible on piwigo.com)
you can replace mbSpecials by mbMenu
Many thanks for this!
Offline