phpWebSite Manual
phpWebSite Manual

phpWebSite Resources

Mods

3rd Party Mods

Who's Online
There are currently, 7 guest(s) and 0 member(s) that are online.
You are an Anonymous user.
You can register for free by clicking here
No Members are currently logged in.

Menu Manager

Menu Manager

The Menu Manager Module

Getting Started

Steven Levin

Menus within phpWebSite are used for site navigation. To begin using the Menu Manager module you must go to the Site Content tab of your Control Panel. The link says Menu Manager and may have an icon that looks like an open menu. Click on the textual link or the icon to continue.


Listing Menus

When you first startup the Menu Manager you will find its admin menu followed by a list of menus (if there are any in the database). If there are no menus you should see a message that says: There are no menus in the database at this time (Figure 1).



The admin menu allows you to List Menus, Create a Menu, or go to the Image Manager. This menu might follow you around because it is available on some of the administrative screens. At any point you can click the List Menus link and get back to this page. Each menu in the list contains Edit, Delete, and Activate/Deactivate functions.



  • Clicking the Edit button on the row of the menu you wish to edit will take you to the Edit screen which will be discussed later.

  • Clicking the Delete button on the row of the menu you wish to delete will take you to a Yes/No confirmation. The confirmation is to make sure you want to delete the menu (make sure this is what you want to do and that you have selected the correct menu). Click Yes to remove the menu and all of its links from the database. Click No to cancel the deletion process.

  • Clicking the Activate/Deactivate button on the row of the menu you wish to change will toggle it between being viewable by the public or not.


Creating New Menus

The Create a New Menu page allows you to configure all of the settings for your new menu. The options you see here can be changed later via the menu settings when you are editing your menu. Settings for the most part can be left at their default values and the menu will function the way most expect. Most of the options are for those who would like to really configure their menu.


  1. Click on the Create Menu link in the admin menu at the top of the page, this will take you to the Create a New Menu page.

  2. Next begin to fill out the fields appropriately (Figure 2).



  3. Menu Title: The text title that will show up at the top of the menu. You should always provide a title for your menu, although it is not a required field. A title will help you distinguish it from other menus.

  4. Menu Spacer: This value is a numeric value which represents the number of extra spaces the menu will add automatically to each nested level of the menu. The menu will always start with 0 space at the first level of the menu. (ie. a value of 2 for the menu spacer will put 2 spaces on the first nest of the menu and 4 spaces for the second nest)

  5. Template: The template for the menu is just there to give the ability for someone to highly configure their menu. For most this option will just stay at default unless you really know what you are doing.


    • If you would like more information on templating please see the TEMPLATE.txt doc in the docs directory for the Menu Manager. The image map checkbox is there for furthur templating configuration.

  6. Allow View: The allow view option allows you to choose which modules must be active in order for the menu appear. You can select one module or multiple modules. The default is to select all of the modules so if none are selected then the menu will be viewable for all of the modules currently installed. If a module is installed after the menu is created, and you want the menu to show up for the module, you will have to come and select it under the menu settings.

  7. Default Theme Variable (See Figure 3): This allows you to choose where the menu will show up on the page after it is created. This is the only time you can set this option within the menu manager. After it is set it can be changed via the layout modules box move option. The values for this option are pretty self-explanatory.



  8. Menu Indent: The menu indent can be one of two things: a character or an image. If the radio button is selected for a character, then the menu manager will use the character selected from the dropdown box before every link in the menu. Also if an activity color is set for that character then the character will turn that color when the link it shows up before is the link that was just clicked. If the radio button is selected for an image then the images chosen will show up before each link (depending on the activity of the link). The images found in the dropbox here can be uploaded via the image manager.


Image Manager

The Image Manager just gives you a web-based interface to upload images you want to use as an indent item at that is all. If you do not plan on using an image for your indent item then you will not need to use the image manager. Current images can also be removed from the system via this page by just selecting the image and clicking delete.


Editing Menus

To edit a menu you must list all of the current menus as described before and click the Edit button next to the menu you want to edit. Now you will see a list of all current links in the menu. If there are no links in the menu, you will get a message that says: No items for this menu.






  1. A menu item may be added to the menu by clicking on the Add Menu Item button at the bottom of the window (Figure 4).



  2. After you click this you will see a screen which will give you three options (Figure 5).




    • Title: The text representation of the link that will be placed in the menu. This field is required.

    • URL:The url of the link you want to add. If PageMaster pages are available they will show up here in a dropdown box. You can either fill out the url or pick a PageMaster page. When a PageMaster page is chosen, then the url field is populating accordingly so it does not need to be filled out (In this case the user submitted url will be ignored).

    • Display: This option allows you define how the link will act and display on your site.


      • Internal: The page is internal to the site and the menu will expand at that point where the menu is clicked.

      • External: The page is external which means it is not located within your site (ie. links to another site) this will not detect your position in the menu.

      • New Window: This option will cause the link to open in a new browser window.

  3. Select where on the menu you would like the menu item to go. The very top radio button means you want the link to be a top level link (ie. not nested under another link). If any other radio button listed next to another menu item is selected, that means you want the link you are adding to be nested under the item selected. Finally, if this is the first link you are adding to the menu then it can only be a top-level link.








This is the first mode you will see when editing your menu. At any time you can switch to the advanced edit mode by clicking the Turn On Advanced Edit button. The basic edit allows you to edit the textual representation of the menu item, change the activity of the menu item, change the order of the menu item, and delete menu items. All of the edit and delete options can be done at once by checking more than one check box and then clicking the appropriate submit button. However, ordering of menu items can only be done one at a time by clicking the arrow in the direction you want it to go.

To update a menu item:


  1. To update the text, change the value in the text field of the link you want to edit and check the box next to the link, now click the Update Menu Items button and you are done.

  2. To toggle the activity of a menu item check the box next to the item you want to change and then click the Activate/Deactivate button.

  3. To change the order of a menu item just click the up or down link next to the item you want to move. Only items that are on the same level (in the same nest) can be ordered. An item can not be moved to another nest at this point in time. This option is in the plan for future versions.

  4. To delete an item check the box next to it and then click the Delete button. A confirmation will then appear making sure you are deleting the links you want. If you click Yes that link will be deleted along with ALL of the links nested under it.






The advanced edit mode will also allow you to edit the textual representation of a menu item and delete a menu item. It will also allow you to edit the url for the menu item, and the display method as described earlier. All of the edit and delete options can be done at once by checking more than one check box and then clicking the appropriate submit button.


To update the menu item:


  1. Edit the textfield containing the information you want to change.

  2. Then check the box next to the item and click the Update Menu Items button.

  3. If you select a PageMaster page then you do not need to edit the url field, the menu will take care of that for you.

  4. To update the display, select the display you want then check the box next to the item and click the Update Menu Items button.

  5. To delete an item check the box next to it and then click the delete button. A confirmation will then appear making sure you are deleting the links you want. If you click Yes that link will be deleted along with ALL of the links nested under it.






The Settings button will take you to the settings for your menu. These are all the same options seen before when creating a menu. Click Save at the bottom to update any changes you may make on this page.





This allows you to add a link of a specific module's user view to the menu. After clicking this button, select the module you want to add a link to and then select the position you would like to see the link in the menu. Finally click Add Menu Item. Your are done.



Created on 07/26/2003 12:32 AM by RobertK
Updated on 04/11/2004 10:01 PM by RobertK
 Printable Version

Comments - Please Log In to make a comment
The comments are owned by the poster. We are not responsible for its content.
No Subject
Posted on: 09/21/2003 12:53 AM   By: Anonymous
Anyone have any CSS menu button examples?
Re:
Posted on: 02/22/2005 01:37 PM   By: Anonymous
I second that request..

Any CSS menu examples??????
Re:
Posted on: 04/09/2005 01:38 PM   By: Anonymous
You mean like on this page www.frankboer.nl
Image Buttons
Posted on: 09/21/2003 09:13 PM   By: Anonymous
How do you use images for navigation buttons??





New menu created, now what?
Posted on: 10/30/2003 08:30 AM   By: Anonymous
I am new to phpWebsite. I am very impressed so far. I used the above instructions to create my nice new menu. Now how do I get the new menu to replace the Demo Menu?
Re: New menu created, now what?
Posted on: 01/13/2004 05:33 PM   By: Anonymous
It's very easy to replace the demo menu. First activate your new menu by clicking the activate button. If you want to remove the Demo menu deactivate it.

If you've already done this and it still doesn't show up you may not have allowed the menu on all modules. Edit the menu then select settings. Make sure all modules are blue. If they aren't select the ones you want(using ctrl+left click)

Hope this helps
Re: New menu created, now what?
Posted on: 01/13/2005 03:42 AM   By: Anonymous
There may be a better way than this, but delete the Menu Demo, then use the Layout Admin tool (under Control Panel -> Administration) to move the menu to the correct location.
Re: New menu created, now what?
Posted on: 04/26/2005 08:41 PM   By: Anonymous
I don't see any logistics related material on that page. I'm trying to move menus/modules to different locations on the page. Is that possible? If so how and where?
How do I assign a menu to a specific page only?
Posted on: 02/04/2004 11:25 PM   By: Anonymous
How can I assign a menu box for a specific set of pages only?
Several pages may have the same modules active, but I want the manu block to appear only in a specific related set or category.
Re: How do I assign a menu to a specific page only?
Posted on: 06/19/2004 01:50 PM   By: Anonymous
Good question. Who knows the answer. The menu's are only module related, please make them category related!
how / or is this possible?
Posted on: 02/08/2004 09:09 AM   By: Anonymous
I would like to have some of the menu items be displayed with the whole category tree visible instead of making people click on certain categories to display the subpages - it would be handy to be able to display the full menu option for certain categories - is this possible? How is it done?
Some menus only visible to logged-in users
Posted on: 02/13/2004 01:15 AM   By: Anonymous
Some menus are visible to all users, and some are only visible to logged-in users. This seems to happen without rhyme or reason. Any idea what could be causing this? Thanks.
Re: Some menus only visible to logged-in users
Posted on: 05/23/2004 04:48 PM   By: Anonymous
I would like to know how i get my 'user only' menu only shown for loged in users......

not an answer but an extende question sofar....
error message
Posted on: 04/13/2004 12:58 PM   By: Anonymous
when I try to add a menu item to a new menu, I get this error message:

DB Error: unknown error
LOCK TABLES mod_menuman_items WRITE [nativecode=1044 ** Access denied for user: 'phpwebsite@localhost' to database 'phpwebsite']

any suggestions?
Re: error message
Posted on: 04/13/2004 02:58 PM   By: Anonymous
I am replying to my own message...found solution in Forum



The solution to this is to
edit MenuItem.php The file is located in the Mod, Menuman, Class. Delete or comment out this line (412) $GLOBALS['core']->sqlLock("mod_menuman_items");

It works beautifully after this.
Re: error message
Posted on: 06/02/2004 09:50 PM   By: Anonymous
Thank you for this solution, I had the same problem which is now sorted.

But...
Now I have a new problem, maybe you also have it? I can no longer use Menu Settings. When I click on the Settings link, for instance to rename a Menu, I get the title of the page "Menu Manager" followed by the links "New Menu | List Menus | Image Manager" ... and it stops there. I was able to use the Menu Settings before commenting out the 2 lines to sort out the previous problem.

Help?
Re: error message
Posted on: 09/01/2004 11:34 PM   By: Anonymous
I commented out and even deleted the referenced line, but now I get this:

Parse error: parse error in /home/asqlvorg/public_html/mod/menuman/class/MenuItem.php on line 3

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/asqlvorg/public_html/mod/menuman/class/MenuItem.php:3) in /home/asqlvorg/public_html/core/Core.php on line 296

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/asqlvorg/public_html/mod/menuman/class/MenuItem.php:3) in /home/asqlvorg/public_html/core/Core.php on line 296

Fatal error: Cannot instantiate non-existent class: phpws_menuitem in /home/asqlvorg/public_html/mod/menuman/class/Menu.php on line 295


I'm trying a fresh install of 0.9.3-4 and the Host says the LOCK feature on their mySQL DB is disabled and they can't do anything about it for "security reasons"

Any ideas?
Re: error message
Posted on: 09/26/2004 01:10 PM   By: Anonymous
More elegant solution would be to run this mysql query:

GRANT ALL PRIVILEGES
ON phpwebsite.* TO
phpwebsite@localhost IDENTIFIED BY 'yourpassword';
Re: error message
Posted on: 10/19/2004 09:04 PM   By: Anonymous
A better solution is to edit core/Database.php... comment out the payload of the two functions which deal with lock. This way, if the problem occurs with any other action, you'll have dealt with it for all modules.
Menus with Icons instead Titles!
Posted on: 05/25/2004 12:22 AM   By: Anonymous
If you want to asign images to be displayed instead the text title you need to hack the code or use my personal hack to the module ... it begun with 9.3.1 (not so good), but with 9.3.2 I fixed a lot and works more than fine, with recently changes to 9.3.3 I need to rework on search and display, but hope to finisht in a week.

You can see how it works on my personal page (on 9.3.2) at http://ccbas.uaa.mx/~guido (sorry, Spanish only!)

And you can ask for the code to my email: domagui@universia.net.mx

If ypu need something like that, just ask for it (GPL) !

Atte. MSc Guido
Link Limit
Posted on: 07/18/2004 08:01 PM   By: Anonymous
I have a very large menu which at present contains 110 links and have now lost the ability to use the advanced edit functions. All I get when trying to enter advanced edit for this menu is a white screen. Another menu with fewer links can still be accessed using advanced edit. Is there a limit on the number of links permitted in a menu or do I have a different problem. I could solve the problem by categorising the links into different menus but would like to keep the current menu structure if possible. View at http://www.lakedistrictfishing.net/

Any help would be greatly appreciated
Cheers
CS
Indenting submenu items?
Posted on: 08/16/2005 02:02 PM   By: Anonymous
I've just started using PHPWesbite and really like it so far. I've figgured out how to do most of what I wanted but one item on my 'to do' list isn't resolved yet.

How can I get the sub menu options to be displayed indented? I'm looking for something similar to how they are shown in the menu manager.

To all on the project, great work!

Dennis


Remove Menu Title Space
Posted on: 10/12/2005 01:17 PM   By: Anonymous
I am looking to find out how I can move the menu title closer to the menu items. I found the cell padding for the menu items, but I have not found a way to move the menu items closer to the menu title.

Any help would be great, thanks!
installation failed
Posted on: 12/24/2006 11:09 AM   By: Anonymous
i got as missing dependencies for menu manager ,what should i do?

installing form manager is leading to error
i need help!!
Menus
Posted on: 11/13/2008 05:04 PM   By: Anonymous
Actualizaciones, alertas y últimas noticias de todo el mundo las 24 horas del día


Sponsored by Patterson Research
Founded by Robert Kennedy
Powered by phpWebSite