| language
CMS Feature - PhplayerMenu
|
|
PhpLayerMenu is a powerful open source hierarchical menu system developed by Marco Pratesi. It prepares "on the fly" DHTML menus relying on the PHP scripting engine for the processing of data items.
It provides horizontal and vertical layers-based menus whose behavior is analogous to menus of commonly used GUI-based applications. It also provides JavaScript-based tree menus, whose look is analogous to the most widely used file managers and bookmark handling tools. Here is the diagram to explain how to create a Horizontal/Vertical/Tree phpLayermenu at the Menu, and include the phplayermenu into Left or Right Module, or template file tpl. You can have multiple menus at one web page. ![]() Creating PhpLayerMenu at Left/Right Module 1. Create Menu Go to Admin > Menu. Create a menu and then add menu option as shown below. ![]() 2. Create User Module Go to Admin > Module. In our CMS, it has many built-in modules available to be used, for example Search Module, Login Module etc. For this newly added menu, you need to create a new User Module. Create a new user module as shown below. You can choose the menu in the phplayersmenus combobox, and then click Use phplayermenu hyperlink to help you compose the smarty code for the phplayermenu, i.e. {phplayers id=44 type=vert} where 44 is the menuid created in step 1. ![]() 3. Assign User Module to Left or Right Module Once the User Module is created, you can assign the User Module to the left or right module as shown. You can control which user Groups can view this module. ![]() Here is the Vertical type phplayermenu at the left module. ![]() Creating PhpLayerMenu at Template File Tpl 1. Add phplayer smarty to template file tpl To add Vertical,Tree or Horizontal menu into any of your template file, use your favourite text editor to edit the template file tpl. Add the smarty code as follows to create phplayermenu. For Vertical phplayermenu, use {phplayers id=44 type=vert} For Tree phplayermenu, use {phplayers id=44 type=tree} For Horizontal phplayermenu, use {phplayers id=44 type=horiz} Here is one of the Horizontal phplayermenu screenshot: ![]() |





