Hi,
My goal is to remake menubar.tpl. I only need it to display a few albums and their subalbums, the searchbar and login. I don't need any random pictures, no specialty links, no plugin links future or present; just the albums are important.
It would look like (albums on mouseover):
Album1 | Album 2 | Album3 [Search] [login]
Sub Sub Sub
Sub Sub Sub
Sub Sub Sub
The trouble is, I don't know how to make a query to fetch the dynamic list of albums and which subalbums belong to it.
I pulled this from mbSpecials in the existing menubar.tpl, so I'd imagine it would resemble this, but how it sorts out parent/child albums is beyond me.
<dd> <ul>{strip} {foreach from=$block->data item=link} <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a></li> {/foreach} {if isset($blocks.mbMenu)} <hr> {foreach from=$blocks.mbMenu->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} {/if} {/strip}</ul> </dd>
I'd like to have used the Advanced Menubar plugin, but support is slow there and the issue I asked about kept placing extra links in the dropdown boxes and I only need simple links. Any help would be appreciated.
Piwigo: 2.7.2
PHP: 5.3.4 (Show info) [2014-12-11 05:51:40]
MySQL: 5.1.53-community-log [2014-12-11 00:51:40]
Theme: Modus
Last edited by ssnake (2014-12-11 06:59:20)
Offline
Hi :-)
Go to Administration -> Configuration -> menus
You can add bloc ;-)
Offline
ddtddt wrote:
Hi :-)
Go to Administration -> Configuration -> menus
You can add bloc ;-)
That helps me disable the extra junk, but does not help me add an album to the menubar as a menu item.
Offline
Hi :-)
Have you test [extension by grum] Advanced Menu Manager ?
Offline
Sorry, thought I replied to this. In my original post, I stated "I'd like to have used the Advanced Menubar plugin, but support is slow there and the issue I asked about kept placing extra links in the dropdown boxes"
Offline