Hello/Hi/Greetings,
I want to edit menubar_menu.tpl so that when I click on keywords in the Menu I get immediately redirected to the page ./tags.php?display_mode=groups instead of ./tags.php, since I want to make the Tag Groups plugin group view the default view for keywords/tags. The menubar_menu.tpl has the following line:
<ul>{strip} {foreach from=$block->data item=link} {if is_array($link)} <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a>{if isset($link.COUNTER)} ({$link.COUNTER}){/if}</li> {/if} {/foreach} {/strip}</ul>
The problem is that for the life of me I can't find the php file where $block is defined/created. Because as far as I understand in order to achieve what I want, I only need to change the tag/keywords $link in the $block.
Thank you.
EDIT: Found it! It's menubar.inc.php!
Piwigo version: 2.10.1
PHP version: 5.4.16
MySQL version: 5.7.28-31
Last edited by Crythes (2020-02-04 16:10:19)
Offline