Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-level navigation and easy menu definition
#24
Connie Wrote:when "my holidays" is currentpath, I want to show that as <h3>my holidays</h3> ontop of the level2-menu at the left

You can use the breadcrumb functionality for this - you want to output the first level (index 0):

Code:
<h3><?php $bc = return_i18n_breadcrumbs(return_page_slug()); echo $bc[0]['menu']; ?></h3>

Alternatively you can use echo $bc[0]['title'], if the menu label is different and you rather want to output the title.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Multi-level navigation and easy menu definition - by mvlcek - 2011-04-03, 23:05:52



Users browsing this thread: 4 Guest(s)