GetSimple Support Forum
I18n navigation - child pages menu - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: I18n navigation - child pages menu (/showthread.php?tid=6490)



I18n navigation - child pages menu - Everyone - 2014-06-17

I need to display a menu with child pages of a defined parent. Unfortunately when I go with
PHP Code:
<?php get_i18n_navigation'defined-parrent-slug'2,2I18N_SHOW_PAGES ); ?>
then entries of that menu don't get a 'current' class when their corresponding pages are loaded.

I traced the issue to i18n_navigation/frontend.class.php, function getMenu(). There's this line:
PHP Code:
$currenturl $breadcrumbs$icu ]; 
.
If I change it to
PHP Code:
$currenturl return_page_slug(); 
everything seems to work correctly, breadcrumbs are working normally and menu entries get their 'current' class.

My question is what's the purpose of this line, why was it made like that and what are the consequences of my hack?


RE: I18n navigation - child pages menu - shawn_a - 2014-06-17

perhaps ask in the plugins support thread.
http://get-simple.info/extend/plugin/i18n/69/
see the support link ?


RE: I18n navigation - child pages menu - Everyone - 2014-06-17

Sorry, my bad. Can this thread get deleted?