GetSimple Support Forum

Full Version: Getting the menu run around!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok this is probably such a simple solution to this but i cannot seem to find it.

I want to get the second level menu page to have a link back to the parent and the third level page have a link back to the original parent. wow hard on the head but yet sounds so simple.

Level1
Level 2 with link to Level 1 - got this to work with get_parent()
Level 3 with link to Level 1 - Can't figure out how to get this working. get_parent() returns Level 2

Can anyone shed some light on this for me?

Thank you
http://get-simple.info/wiki/permalinks
The URL structure of GetSimple contains two elements parent and slug, which allow for two level URLs like www.mysite.com/parent/slug but do not support a third level in the URL.

http://get-simple.info/extend/plugin/i18n/69/
I recommend the I18N plugin for hierarchical menus.

http://mvlcek.bplaced.net/get-simple/mul...avigation/
Here are detailed instructions on how to achieve your goal.
Yes i have I18N menu on my site for this purpose just do not know how to get this special page sidebar to always show the parent of the parent when i'm in level 3.

Here is what i have so far that works fine for level 2 but not 3 as it shows level 2 as the parent.

Code:
<h3><?php getPageField(get_parent(false),title); ?></h3>
    <?php get_i18n_navigation(return_page_slug(), 2, 2, I18N_SHOW_Menu); ?>
    <br />
    <a href="<?php get_parent(); ?>"><< <?php getPageField(get_parent(false),title); ?></a>
    <br />

I want the sidebar to look like this when i'm viewing level 3 page

Level 2 page name

Level 3 item link
Level 3 item link
Level 3 item link

Level 1 link back

Can you tell me how to accomplish that with the I18N plugin?