Multi-level navigation and easy menu definition - 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: Multi-level navigation and easy menu definition (/showthread.php?tid=1249) |
Multi-level navigation and easy menu definition - mvlcek - 2011-01-18 The I18N plugin (http://get-simple.info/extend/plugin/i18n/69/) offers an easy-to-use multi-level navigation and a much improved admin interface for defining the hierarchical structure of a site (and the menu navigation). Features Nearly any kind of navigation should be realizable with this plugin, e.g.:
Improved admin interface:
Interesting topics: For more information and examples see http://mvlcek.bplaced.net. Example for a top menu and a side bar navigation implemented with I18N (the styling must be specified via CSS): The improved admin interface: Multi-level navigation and easy menu definition - yojoe - 2011-01-18 Judging by screenies it looks interesting. Would you be so kind to post the html structure of dynamically created menu lists ? Assuming you developed this plugin to extensively use lists edit: forgot to add the reason of the question. It's because I'm curious if this menu plugin + css is based on divs or html5 <nav> ? But looking at your website I get an overall view Multi-level navigation and easy menu definition - mvlcek - 2011-01-18 @yojoe: the plugin uses <ul>/<li> with classes "current"/"currentpath" for the currently active menu item resp. its parents. However, you get the menu structure with return_i18n_menu_data(...) and can create your own version with <nav>. Multi-level navigation and easy menu definition - tonyflanigan - 2011-01-31 Hi mvlcek I'm lost. Your plug-in is just what I'm looking for, for the top menu drop-down ability, but for some reason I just cannot get it to work. I've spent the best part of 3 days on this, and if I had any hair, I would pull pull it out. Would it be possible to go through the process, step by step, once the plug-in is added to the plug in folder, as I am sure I am missing or totally overlooking something. Looking forward to your response. Thanks. Multi-level navigation and easy menu definition - tonyflanigan - 2011-02-01 Hi mvlcek I'm not lost, just stupid. I had everything in place except for my <ul></ul>... Thanks for a great plug in! Multi-level navigation and easy menu definition - mvlcek - 2011-02-01 tonyflanigan Wrote:I'm lost. Your plug-in is just what I'm looking for, for the top menu drop-down ability, but for some reason I just cannot get it to work. First I want to state that the plugin's functionality is to create the HTML code for the navigation menu, i.e. nested lists. How these nested lists are displayed (e.g. as drop-down menu) is not part of the plugin but is done using CSS. Nevertheless, here a step-for-step guide:
Code: <div class="sitemenu"><ul><?php get_i18n_navigation(return_page_slug(), 0, 1, true); ?></ul></div>
Code: .sitemenu {
I hope this helps. Multi-level navigation and easy menu definition - tonyflanigan - 2011-02-02 Yes, Thank You. My theme has all the styling in it, but because I missed starting <?php get_i18n_navigation(return_page_slug(), 0, 1, true); ?> with <ul> and ending with </ul> it wouldn't work. I must tell you that I felt a proper fool when I found the problem. Multi-level navigation and easy menu definition - Oleg06 - 2011-02-03 why after adding a plugin GSgallery 2.0 had such a line Code: Notice: A session had already been started - ignoring session_start() in /home/cp068800/public_html/neowebtime.ru/01/plugins/i18n.php on line 106 and for some reason, after deleting the page, the link in the menu does not disappear Multi-level navigation and easy menu definition - mvlcek - 2011-02-03 Oleg06 Wrote:why after adding a plugin GSgallery 2.0 had such a line The I18N plugin starts a session, as the user language is stored there. I suppose that GSgallery also uses the session. Oleg06 Wrote:and for some reason, after deleting the page, the link in the menu does not disappear Currently GetSimple has no trigger on page delete, so the navigation cache is not deleted. Workaround: after deleting a page save any other page (even with no changes) and the navigation will be deleted and reconstructed. Multi-level navigation and easy menu definition - Oleg06 - 2011-02-04 Yes, I understand Multi-level navigation and easy menu definition - juliancc - 2011-02-05 In GSgallery I'm checking to see if the session has been started before I start the session. It would be great if plugin developers that are using the session, will do this as well with a simple Code: if (!isset($_SESSION)) This will ensure this warning notice is never thrown. Multi-level navigation and easy menu definition - mvlcek - 2011-02-05 If updated the I18N plugin to ignore the warning: Code: @session_start(); Multi-level navigation and easy menu definition - juliancc - 2011-02-05 mvlcek Wrote:If updated the I18N plugin to ignore the warning: or that.. haha Suppressing always works. Multi-level navigation and easy menu definition - Oleg06 - 2011-02-05 Thanks, it works Multi-level navigation and easy menu definition - yojoe - 2011-03-02 Wanted to mention a compatibility bug with GS 3.0B. Container with variable "MENU_TEXT" isn't replaced (hidden/deleted/emptied) by the jscript Code: $('#post-menu').closest('div').find('span').empty().html(<?php echo json_encode($i18n['MENU_TEXT']); ?>); in editextras.php file (line 90). Instead it's called twice, thus it leads to render a bit messed site options. Deleting above line, and messing with edit.php does the thing, but it's a dirty solution. edit: seems it's not that simple, and I don't know how to fix it, to menu order as it is supposed. Multi-level navigation and easy menu definition - mvlcek - 2011-03-19 yojoe Wrote:Wanted to mention a compatibility bug with GS 3.0B. A new version 1.0 is available (http://get-simple.info/extend/plugin/i18n/69/):
Multi-level navigation and easy menu definition - Angryboy - 2011-03-19 Works just fine and is intuitive as always. One minor problem is its visual interference with the CustomFields plugin: Just a case of separating that out a little better. Multi-level navigation and easy menu definition - mvlcek - 2011-03-19 Angryboy Wrote:Works just fine and is intuitive as always. That's a problem of the CustomFields plugin, which uses table rows to display the fields, but there is no table anymore in 3.0b ;-). Multi-level navigation and easy menu definition - Angryboy - 2011-03-19 Oh, I forgot to mention: this was in the 3.0 BETA :S Multi-level navigation and easy menu definition - polyfragmented - 2011-03-21 The drag-and-drop feature for pages improves things loads. Thanks for that! Multi-level navigation and easy menu definition - mvlcek - 2011-03-22 Version 1.1: you can now also change the menu texts in the navigation structure view. Multi-level navigation and easy menu definition - mvlcek - 2011-04-03 Version 1.2: Supports external links, see here. Multi-level navigation and easy menu definition - Connie - 2011-04-03 Martin, I am not sure if it was asked before, but I couldn't find an answer ... I am using the variant: Top + Left, but I would like to print out the name of the parent-element of the left menu for example: level 1: my holidays level 2: Spain + Greece + China So when "my holidays" is currentpath, I want to show that as <h3>my holidays</h3> ontop of the level2-menu at the left, how to do that= Multi-level navigation and easy menu definition - mvlcek - 2011-04-03 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. Multi-level navigation and easy menu definition - Connie - 2011-04-03 mvlcek Wrote:<h3><?php $bc = return_i18n_breadcrumbs(return_page_slug()); echo $bc[0]['menu']; ?></h3>Martin, I modified this to Code: <h3><?php so there is output only when there are subpages, but now it is not showing anything... |