Inline Navigation
|
Aug 21, 2008 13:44
818 posts
|
The ‘set base for breadcrumbs’ thread started me thinking about an alternative form of “inline” navigation, on analogy to breadcrumbs. This is what I came up with:
Of course, you could set up the separators however you like. This is the code (although everybody here knows more PHP than I do!!). Use this in your Layout (it won’t be able to keep track if you use it in a snippet):
And this is the CSS I used:
It ends up looking something like this:
And it is currently working at TestFrog2. And I sure hope I got all that Markdown correct!! :P |
|
Aug 21, 2008 13:45
818 posts
|
P.S. An earlier menu layout by mvdkleijn inspired some of this. Also, it tests to see if you're at the top or bottom of the tree, and adds the left/right arrows (or not) accordingly. FWIW!! Perhaps not much.... |
|
Aug 21, 2008 14:46
818 posts
|
For reference - I found mvdkleijn's code that this is based on, in case anyone is interested. |
|
Sep 17, 2008 10:29
51 posts
|
And what about page navigation bar like “<< < 1 2 3 4 … 10 11 > >>”. I think it can be realized by the insertions of points of break in content of page. |
|
Sep 17, 2008 12:37
396 posts
|
@jmas – there is a pagianation helper if I’m not mistaken, so you should be able to use that… look through the helpers directory in your frog installation. Before actually using a helper, you’ll need to do:
hopefully I spelled pagianation correctly. :-p |
|
Sep 17, 2008 12:40
396 posts
|
@David – nice… didn’t find this before. I think I can use this on my private site. I’m doing a massive restyling of my site and when I’m finished it’ll be like night and day. :-) |
|
Sep 17, 2008 13:19
818 posts
|
@jMas – you can still find a massive pagination thread which gives you the code and solves some problems. This solution still needs some help, but it works! You can see it at work on the Articles page of my TestFrog site. @mvdkleijn – glad you don’t mind me hacking your code! ;) I wanted to find some way of having at least a minimal “foolproof” navigation level that could work to any level. At the moment, Frog’s “out-of-the-box” navigation just gets to “child” level (from “home/top”), and I wanted it to work down to “grandchild” and “great-grandchild”, etc., without any need for adjustments. The one drawback of this method is that if there are a LOT of child pages, then the options to the right of the inline-nav could be far too long! And looking forward to seeing your new, even better site! |
|
Sep 18, 2008 01:59
51 posts
|
|
