14
Quote:
gppetersen wrote:
The best solution would be create a new block for the breadcrumb.
But, if you don't need the side menu, you could use a different system_block_mainmenu.html and the menu block will make a bread crumb.
WTF is up with the preview here ???
(warning I'm thinking off the top of my head and haven't tried this code:)
<{foreach item=module from=$block.modules}> <{if ( $module.current == 1 )}>
<{/if}> <{foreach item=sublink from=$module.sublinks}> <{if ( $sublink.current == 1 )}>
<{/if}> <{/foreach}> <{/foreach}>
|
What I would like to do is create a block for a generic breadcrumb that I can place on all pages:
Home > Blah1 > Blah2 > Blah3....
All of above would be linked, as well, so that it can be a true navigational breadcrumb.
Grant suggests adding a new block, but I'm not sure whether you just plug this into the theme.html file or whether you should create something under /modules/system/blocks or /modules/system/templates or some other location, or something else altogether.
I'm kinda assuming that it's not so simple as just creating a block through admin and enabling it. (Though I would love it if it were). It seems that this kind of thing has to be manually added to maybe the theme.html template or a combination of things.
Where would Grant's block code be added?
Many thanks