Setting up "Breadcrumbs"
|
1493 posts
|
I see that the MadeByFrog has a lovely "breadcrumb" trail (and I have looked at "page source"! :) I tried to set this up in the Layout section by including this:
Of course, that only gives me the name of the current page -- not a useful "trail". Can anyone (Philippe?:) share their code (even the "div"!) for their breadcrumbs? Thanks!! David. |
|
541 posts
|
of course.. look at this instead :
yes with a "s" at the end ;) |
|
1493 posts
|
8^O That is waaaaay too easy! :) Thanks (again!) Philippe. |
|
1493 posts
|
OK - I'm learning! :) I set it up like this:
Works perfectly. Or is there a better way of doing that? |
|
541 posts
|
yes if you need to test a url you can use 2 differents functions the first one is: note too that url are slash trimmed so /the/url = the/url = the/url/ = /the/url/ :) |
|
1493 posts
|
Thanks, Philippe - helpful as ever! Are these uses of "url_match" and "url_start_with" your own creation, or part of the framework? I can't seem to find them in any of the (limited) PHP documentation I have looked at. David. |
|
1493 posts
|
One oddity I just noticed (in 0.8.7) is that the breadcrumb trail set up by the code above looks like this:
Any idea why it should be inserting a double // after my "home" directory? |
|
541 posts
|
hooo yes I hae my idea :) .. my fault ... did you get the last beta ... I have release again one day after because I have decide to add you the statistique module that I haven add to !! and 3 major bug for the breadcrumbs I will correct that imidiatly |