Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-level navigation and easy menu definition
#62
Hi there,

thanks for your awesome plugins. I have a quick question.

I'm trying to display the menu using default code/behavior i.e

Code:
<?php get_i18n_navigation(return_page_slug(),1,99) ?>

menu items are starting from level 1 because my parent page (0) being used as a header. the code works well when browse the level 1 page but on the index page I don't see anything.

Normally I need to use this code to show sub pages of a parent page called page-slug

Code:
<?php get_i18n_navigation('page-slug',1,100,I18N_SHOW_MENU); ?>

and this code works well but in this case I lose the required behavior i.e displaying child pages of a current opened page.

What should I change in the code to make the menu visible on the main page?

Sorry if it sounds too complicated, I tried to describe my problem as simple as possible Smile

The attached screenshot shows the menu on a sub page (level 1) but is empty on the homepage.
Reply


Messages In This Thread
Multi-level navigation and easy menu definition - by [/root.] - 2011-08-29, 01:35:38



Users browsing this thread: 1 Guest(s)