Menuitem for 1.8

Warning: This plugin has't been updated in over 54 years. It may no longer be maintained.

What you can do to help:

Manage menu items on your Elgg site.

Last updated

!!! This plugin requires the phloorFramework - please make sure you got the LATEST release !!!

Some facts:

  • You are able to ceate menu items for specific menues (site, topbar, footer, ...)
  • Creating menu items is limited to administrator
  • Hooking into the menu is enabled as soon as the first menuitem has been created
  • In the plugin settings (admin interface) one can define whether the 'more' section of the sitemenu is shown - you are able to hide the "more" menu! this can be done for "guest" or for all "logged in users" (including the admin). 
  • Contains CSS rules for a rudimentary 2-level-site menu (see screenshots)
  • Tested with following menues: 'site', 'footer', 'topbar', 'page', 'extras', 'phloor-sidemenu, 'owner_block', 'user_hover'
  • Reordering can be done via drag&drop (or if JS is disabled via the "priority" attribute)
  • if an "parent menu item" is deleted its child menu items will rise one level in the hierarchy tree
  • NEW! context dependend menuitem items (e.g. only view in context "profile", etc.)
  • NEW! access levels for menu items (guests only, public, logged in, friends, private)

 

 

the plugin hook for arranging the menu like in the default installation is disabled _as soon as an element as been created_. the plugin moves the default "Menu items" into the "More" section and inserts the ones you have created. You can create entries of "News", "Members" , "Blogs".. and even recreate the "More" menu by yourself -> that means you should give this plugin total control of the menu.

Reording can be done via drag&drop or manually via the 'priority' attribute from 1 (high priority) to 999 (low priority). take a look at the screenshots.

At the moment it is limited to 2-level hierarchies. That means no "sub-sub-menues". But more accurate: the displaying is limited to 2-level hierarchies.. "creating" the hierarchy-tree is already possible and you are encouraged to do so.. because the code and style sheets for n-level menu will come in the near future.

Special Patterns. There are special patterns that get replaced when you use them in the title, the 'href' orthe tooltip.. Take a look at the screenshots. the standard ones are:

  • %wwwroot%: gets replaced with the sites urls
  • %username%: the username of the current logged in user

(please keep in mind, that for example the '%username%' pattern can only be applied, if theread access for this menu item is set to 'ACCESS_LOGGEDIN' a.k.a 'logged in only')

 

 

Please report any bugs or strange behaviour.

Languages:

  • English
  • German
  • French (thanks to @Jean-Baptiste Duclos)

Overwrites:

  • nagivation/menu/site.php

This plugin uses icons from the amazing famfamfam silk icon set. Please visit: http://www.famfamfam.com/lab/icons/silk/Thank you Mr Mark James for this great work.

Todo

  • use Elggs javascript class ElggPriorityList
  • persist settings in in config array

Please report any errors. Suggestions are very welcome. If you like the plugin please consider a recommendation. Thank you!

Stats

  • Category: Site admin
  • License: GNU General Public License (GPL) version 2
  • Updated: 1970-1-1
  • Downloads: 3200
  • Recommendations: 11

Other Projects

View 13net's plugins