Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting the menu run around!!!
#1
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
Keeping it simple means making progress!!
Reply
#2
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.
Todo arde si le aplicas la chispa adecuada.
Reply
#3
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?
Keeping it simple means making progress!!
Reply




Users browsing this thread: 1 Guest(s)