Add authentication roles orangeHRM - symfony-1.4

I have added a new authentication roles for orangeHRM , it must access all menu and sub menu except Salary, i have added same roles which admin has to following tables.
ohrm_user_role_data_group
ohrm_user_role_screen
ohrm_data_group_screen
but it not coming as ordered like menu and sub menu, all are coming as menu only.

In ohrm_menu (Table which has the menu information) where you have to set the level of a menu item and the parent of a current menu item. So you can have your sub menus organized under a top menu item. See that helps!

Related

How to disable Wordpress top menu link?

How to disable top menu link in Wordpress to avoid redirect to another page on click. I only need to show submenus.
Give the menu item link a the value #.
Then you'll need some Javascript to prevent default link clicking action.
E.g. with jQuery:
$('.class').click(function(e){
e.preventDefault();
});
// replace class with whatever the selector of the link is. To cover ALL menu items that have sub menus (and have the WP classes), you can use '.menu-item-has-children a'
Add custom link to menu item (Put # value on link)
Log into your WordPress administration panel. Navigate to Appearance, and select Menus:
Navigate to Links on the left and type in the URL you want to have for this menu button, add Link Text to specify what the tab will say, and then click Add to Menu:
Optionally, if you would like to control whether your menu link opens in a new tab when clicked, check the “Link Target” advanced property from within Screen Options to reveal this setting on individual menu items:
Refresh the site and you will see your new custom page and link in the navigation menu.

display parent menu name and corresponding sub menu name in the sub menu pages in wordpress

I created parent and sub menus in word press.
Parent menus are custom links and don't have pages.
Sub menus are pages.
The menus are displayed in header area horizontally.
On hover the sub menus are displaying.
when clicking the sub menu,the corresponding page opens.
On that page i need to display corresponding parent menu and siblings of sub menu in left side of the page.
On the "About Us" page, the left-side navigation has been created manually.
I'd like to have similar submenus on other parts of website, too (About NDT, Membership etc.). How can I achieve that?
For example, this is About NDT section - note that on the left side we have "About Us" contents.
What I need is to have "About NDT" contents there - as annotated on image.
thanks

Drupal 7 : How to control Visibility of Main Menu based on selection of Menu Item in User_Menu?

I have Main_Menu which is my Primary and User_Menu which is my Secondary Links Menu. I want to show the Main_Menu when user clicks on one of the Menu Items in the User_Menu. How do i achieve this?
I'm not sure I understand the use case for showing the primary menu after clicking on the secondary menu. That seems to contradict the meanings of "primary" and "secondary". :)
But you might get some use out of the Menu Block module: http://drupal.org/project/menu_block

In DNN how to disable a parent menu link for the NON HOST, NON admin?

In one of my DNN web site i am using DNN menu, for some item in DNN menu i want the parent or root menu item to be accessible by HOST user, or admin user and want child elements to be accessible all users so how can i disable all root menu item to be enabled for the host/admin only(it should be click-able and should redirect to appropriate link) while the sub menu item for the root item should be enabled for all users. I am in dire need of solution please help me with this.
It's a strange setup that you want with this.
To disable a parent menu link, you just set the page properties to 'disabled'. This makes a page not clickable in the menu.
However, if for some reason you want admins to be able to click a menu item, but no other users, then I would suggest that you set up the parent menu item as normal, but then set that page to have a permanent redirect to a different page, with the second page hidden. The second page would then have the permissions set to only be visible by admin/host users.
So...
parent : enabled, visible, all users permission, permanent redirect to 'fake parent'
child page 1 : as normal
child page 2 : as normal
child page n : as normal, etc
somewhere else in the menu.
fake parent : hidden page, admin only permission
It would be a bit clunky but probably will work OK.
In DNN 9.00.01 the Disabled option is not there.So in that case u need to Go to your DNN database and update the Tabs table DisableLink Column value from 0 to 1

How can I prevent a main menu item with sub items from being clickable in Wordpress?

Here is my site:
http://wake9.com/blogs/norcal-merced-wakesurfing-competition-2009/.
Notice the menu item "Photos and Results". Hover over it and you will see sub menu items. I want to be able to click on the sub-menu items but the main menu item shouldn't be a page or be clickable. The only way i could get this item on the menu was to make it a page. Is there a way to just have a menu item that has sub menu items to content, but the actual menu item isn't clickable? I was thinking about using JQuery to remove the anchor tag, but that is a real hack and I want to know if there is an easier way.
Thanks in advance!
One option would be to use Page Links to plugin and set the main link as '#' . I tried this and it works in my blog.
What about using the jQuery.remove to remove the element?
something like this:
function removeLinkAttrib() {
var attrib = jQuery(#menus).find("a").attr("Photos and Results");
jQuery(attrib).remove;
}
I'm not sure if $(attrib).remove; will work, but you get the picture :)
(this answer is for people using Wordpress.com free sites):
You can go to Appearance > Menus, then add a custom link to the menu by clicking 'Links' in the left-hand column, and adding "#" as the URL (and whatever you want as a label). Then add this link to the menu. Open the options for the new menu item in 'Menu Structure', and then delete '#' from the URL, so the field is blank, and save changes. Now you can add sub-menus to this menu item, and there will be no link for this item on the main menu...works for me.

Resources