Loading...
 
Skip to main content

Features / Usability


Add feature to Menu

I am trying to add " Html Pages" features to the main menu.
Can someone tell how to do that?

The Application menu (menu Id = 42) items appear to be "hard-coded" in /templates/modules/mod-application_menu.tpl. So you can either edit that file or make a new menu without the Articles item on Tiki's Admin Menu page.

-- Gary

The Application menu (menu Id = 42) items appear to be "hard-coded" in /templates/modules/mod-application_menu.tpl. So you can either edit that file or make a new menu with the HTML Pages item on Tiki's Admin Menu page.

-- Gary


Go to the Admin Menus page (tiki-admin_menus.php) and click on the Configure/Options icon (the tools) for the menu you want to modify. I guess by main menu you mean menu 42. Enter the information about the link you want to add in the Edit Menu Options form — its name, URL, section (in other words: Tiki feature) and permission info if necessary. See existing items for the pattern of how menu item information is entered.

Notice that the items are displayed in the menu in the order determined by their position number. Tiki's default menu has (and, I'd recommend, any custom menu should have) unused numbers left between the numbers used for items, so that you can add new items without having to re-number every item below the new one in the menu.

See also the docs pageQuestion for more information on menus.

-- Gary

When i try to add Features to menu and Add FAQ's its adding it to menu 42.But when i try to add HTML Pages feature it does not show up in menu 42.
I want to set up a feature where users can posts/edit HTML pages with a specific template.
-Mohit

> Go to the Admin Menus page (tiki-admin_menus.php) and click on the Configure/Options icon (the tools) for the menu you want to modify. I guess by main menu you mean menu 42. Enter the information about the link you want to add in the Edit Menu Options form — its name, URL, section (in other words: Tiki feature) and permission info if necessary. See existing items for the pattern of how menu item information is entered.
>
> Notice that the items are displayed in the menu in the order determined by their position number. Tiki's default menu has (and, I'd recommend, any custom menu should have) unused numbers left between the numbers used for items, so that you can add new items without having to re-number every item below the new one in the menu.
>
> See also the docs pageQuestion for more information on menus.
>
> — Gary

Does the page you are adding to the menu have the URL: tiki-admin_html_pages.php ? This is already an "option" item down in the Admin section of the menu, but you want to add it as a "section" item for users to access, is that right?

Do your users have the permission to edit HTML pages (tiki_p_edit_html_pages)? It's probably also necessary to indicate this permission for that item when adding it to the menu.

-- Gary

Yes thats Absolutely correct.I have been trying exactly as you mentioned but its not showing as a section in menu42.What should i mention for the section option there is nothing called feature_html_pages.is that the problem?
this is the current setting as below-:

42 625 HTML PAGES tiki-admin_html_pages.php s tiki_p_edit_html_pages

Can u suggest?
--Mohit
> Does the page you are adding to the menu have the URL: tiki-admin_html_pages.php ? This is already an "option" item down in the Admin section of the menu, but you want to add it as a "section" item for users to access, is that right?
>
> Do your users have the permission to edit HTML pages (tiki_p_edit_html_pages)? It's probably also necessary to indicate this permission for that item when adding it to the menu.
>
> — Gary

I don't think the absence of a specified feature/section is the problem, as I've added menu items in the past without filling that in, and they worked. I tried duplicating your process with my application menu, and had the same result: the HTML pages item doesn't show up. I flushed all the caches and checked in the database table to verify that the change had been saved. Still no luck.

Rather than continue to edit that menu, I suggest you make a new custom menu from scratch, adding the items that you need, following the pattern of the Application menu if necessary. This is what I've done at my sites, and this custom menu should be fully editable and your changes will be effective.

-- Gary

I tried adding a menu and its now messed up and gives the following error
LayersMenu Error: setMenuStructureString: empty string.
Halted.

Its not loading my default login page also.How to go about this?
--Mohit
I don't think the absence of a specified feature/section is the problem, as I've added menu items in the past without filling that in, and they worked. I tried duplicating your process with my application menu, and had the same result: the HTML pages item doesn't show up. I flushed all the caches and checked in the database table to verify that the change had been saved. Still no luck.
>
> Rather than continue to edit that menu, I suggest you make a new custom menu from scratch, adding the items that you need, following the pattern of the Application menu if necessary. This is what I've done at my sites, and this custom menu should be fully editable and your changes will be effective.
>
> — Gary

Hi thanks for this information,

Question is I want to add a menu item for admins only, what do I enter for Permissions and Groups?

Added 'admins' for the groups box but it just made the menu item disappear for all users including admins.

Do you also know what the Sectons box is for too?

Also in the modules screen I want the application_menu module to be only available to admins. The visibility and Groups settings seem to make no difference.

I am using version 1.85

None of this is documented and is leaving me scratching my head.

Many thanks

Edward