In my layout that I am creating I want all of the Action Items up in the Pathbar like the name and the login. So I copied
{foreach from=$layout.itemLinks item=link}
<li><a href="{$link.url}">{$link.text}</a></li>
{/foreach}
from the sidebar.tpl to pathbar.tpl and nothing shows up so then I tried
{if ($layout.show.sidebarActions && !empty($layout.itemLinks))}
{foreach from=$layout.itemLinks item=link}
<li><a href="{$link.url}">{$link.text}</a></li>
{/foreach}
{/if}
But that didn't work either. Does anyone know how to do this?
Thanks,
Posts: 7994
That's a neat idea. I tried that also. I just copied those lines into the bread crumb and they showed up for me. My breadcrumb looks like this, now:
Is that what yours looked like after your change?
Posts: 808
Not quite. I want the actions to come after the login/logout in the menu not in the bread crumb so my code looks like this except for some reason mine doesn't work. I also want to flip the order so if the window is not big enough the links go to two lines not the bread crumb.
Posts: 7994
I'm not the best person to help you with this stuff (I have zero UI ability). But if I understand what you're asking, then you can just create a second breadcrumb bar and put it at the bottom of pathbar.tpl, like this:
You can define your own CSS class if you don't want to reuse gbBreadCrumb. Put it at the end of layouts/lvthunder/layout.css.php and define it any way that you want.
Posts: 808
Thanks for you help. Now I feel really dumb. The reason it wasn't working was I forgot to change the path to the include files in albumbody.tpl and singlebody.tpl so it was reading the original ones in the matrix layout not my modified ones.
Posts: 2
I'd like to do that too, but I'm using the carbon theme.
In sidebar.tpl, the code looks like this:
{* Show the sidebar blocks chosen for this theme *}
{foreach from=$theme.params.sidebarBlocks item=block}
{g->block type=$block.0 params=$block.1 class="gbBlock"}
{/foreach}
{g->block type="core.NavigationLinks" class="gbBlock"}
The problem is that I have "item links" and "links to album/photo peers" blocks enabled but I only want to display the item links in my header.
How do you selectively display that since this code pulls out all blocks?