11
DogTags
Re: Adding menu highlighting and a hook for bread-crumbs
  • 2005/5/1 11:45

  • DogTags

  • Just popping in

  • Posts: 50

  • Since: 2004/12/4


I found it:

/modules/system/templates/blocks

12
DogTags
Re: Adding menu highlighting and a hook for bread-crumbs
  • 2005/5/1 12:08

  • DogTags

  • Just popping in

  • Posts: 50

  • Since: 2004/12/4


I plugged in:

system_blocks_menu.html
system_blocks.php
and the new css

However, here's what's happening:

1. It added another HOME link to the main menu. I'm getting:

HOME
HOME
NEWS
FAQ
etc....

The first HOME link is normal:

http://www.domain.com/xoops/

The second HOME link looks like this:

http://www.domain.com/xoops/modules//

2. The lower main menu links look like this:

http://www.domain.com/xoops/modules//modules/edito/

Any suggestions?

Maybe this won't work in 2.0.10. Not sure

Many thanks

13
DogTags
Re: Adding menu highlighting and a hook for bread-crumbs
  • 2005/5/1 12:24

  • DogTags

  • Just popping in

  • Posts: 50

  • Since: 2004/12/4


Quote:

LazyBadger wrote:
Did you update module System after editing system_blocks.php ?!


Ah, I see. In admin:

Admin > Click System Admin Icon > Click Update Icon (which is the box looking thing with a little green dot and the blue circle/halo around it

Menu working okay now :)

Now I gotta figure out how to add the breadcrumb block.

14
DogTags
Re: Adding menu highlighting and a hook for bread-crumbs
  • 2005/5/1 13:15

  • DogTags

  • Just popping in

  • Posts: 50

  • Since: 2004/12/4


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:)
<table cellspacing="0">
<tr>
<td id="mainmenu">
<a class="menubreadcrumb" href="<{$xoops_url}>/"><{$block.lang_home}></a>
<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<{if ( $module.current == 1 )}>
<a class="menubreadcrumb" href="<{$xoops_url}><{$module.directory}>/">
<{$module.name}>
</a>
<{/if}>
<{foreach item=sublink from=$module.sublinks}>
<{if ( $sublink.current == 1 )}>
<a class="menubreadcrumb" href="<{$sublink.url}>">
<{$sublink.name}>
</a>
<{/if}>
<{/foreach}>
<{/foreach}>
<!-- end module menu loop -->
</td>
</tr>
</table>

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

Login

Who's Online

157 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits