How to hide a menu item in joomla to registered users - joomla

I'm using joomla 1.5.23, what i want is to hide menu items to registered/logged in users. I'm able to hide the menu item from the public, but want it the other way round.

The above answer does completely the opposite, ive found a solution using metamod for joomla. Here you can hide to the registered and show to the public.

In joomla1.5, you can change the access level for the menu.
Go through the following path to change the permission.
Admin => Menu => Main Menu(Menu type) => Select any menu => Check Access level as Registered and then click the save button.
The following menu will be work only for the registered users.

Related

Odoo[12.0] : How to create dropdown and show all menus in dropdown and also will be select multiple menus

i want to create one [hide menu] dropdown field in user creation form. then after show all the menus in the dropdown field and we can also select multiple menus at a time. then which menu we selected they will be hide for the particular user. how to do this if you know it please let me know.
This capability is available in odoo itself but the module cannot access.
Enable debug. Go to technical in the settings section, edit the models, and access them there.
By default in odoo menus is depend on groups which group you are selecting for user and groups is realted with menus but according to your requirement it is also possible but you have to do modifications for that firstly you have to make relationship between user and menus (res.user and ir.ui.menu) in which you select the menus which user can see and after that there is a default function which is called during menu load you can override it and show menus according to your choice to the user.

Joomla view different menu item when premium member

So I am currently using the Gantry framework alongside Community Builder and Gantry has an icon you can place next to a menu item such as ("premium content") the icon could be a padlock which is what it currently is.
When clicking on it, it will tell the user to become a premium user to view it. How do I get it so when the person is a premium member that the padlock icon changes to an unlocked padlock?
The icon is already there but it's a case of changing it in the menu item by making a new menu item probably. Just not sure how you hide the first one to display the second version.
This is what I get to choose, so I could pick public main menu or premium but not both so I am confused.
If you're using Joomla 2.5+ and the built-in ACL to assign "Premium Users" to a specific set of Joomla groups then it's pretty easy, by creating two menu items with the same title but pointing to different content and having different access levels.
Create a menu item with the required name but access set to "Guest" (if you're on 2.5 read this on Guest groups) point it to a page/pop-up with your upsell message.
Create the second menu item pointing to the premium content and set it's access to your access group for "Premium Users". This will give you the same apparent menu but two different states, like the download menu on one of our sites:

Joomla after save menu item event or some other approach how to get actual saved menu item in admin

Is there any way how to get menu item after this menu item has been saved in backend of the joomla (2.5) application. I mean something like event after save of article or category (onContentAfterSave) but after save menu item.
Thanks,
Looking at the com_menus/controller/item->save() or the com_menus/models/item->save() methods there are no trigger events that you could work with.
If you can provide more details of what you want to do with it there may be another way to solve your problem.

Create a childpage in Joomla without showing it in a menu

I would like to create a page in Joomla without showing it in a menu.
That would be easy when the URL could be from the root, e.g.
www.mysite.com/hiddenpage
I would just make a menu without module to show it and assign a menulink to that hidden menu.
However the url should be
www.mysite.com/parentpage/hiddenpage
So the page should be linked to another existing page as a childpage but without showing in the menu.
So far this seems not possible?
Am I overlooking a feature in Joomla which would allow me to simply deactivate visibility in the menu without preventing the page from being accessed from the internet?
Or perhaps is it possible to edit or override a core component to force Joomla to allow this behaviour?
UPDATE:
Too much thinking in one direction...
The solution to do this is to edit the menu-item > linktype > css give it class "hide" (integrated bootstrap class) to just block visibility in the menu...
It's possible but a litle bit tricky. Try these steps :
Create a new two articles, name it as you wish (for example Article A and Article B )
Create a new menu group (from your administrator page go to : Menus > Menu Manager > Add new menu, name it as 'Hidden Menu'
Create a new Single Article menu item (under the 'Hidden Menu'), choose 'Article A' as as the article source and type 'parentpage' in the Menu Title field
Create a new Single Article menu item (under the 'Hidden Menu'), choose 'Article B' as the article source, choose 'parentpage' menu as the parent item and type 'hiddenpage' in the Menu Title field.
Now both of urls www.mysite.com/parentpage and www.mysite.com/parentpage/hiddenpage should be accessible now
As others have mentioned you can find extensions to modify URLs or hide the menu items using CSS, but these can require quite a bit of work especially if this is a one-off or once in a while situation.
However, there is one way to do this with Joomla as-is and will work with any type of menu items, not just articles. These instructions assume you already have a 'hidden' menu setup.
In a hidden menu, create menu items (or move them if they already exist) for parentpage and hiddenpage.
Set parentpage as the 'Parent Item' option in the hiddenpage menu item. Basically, create the page/subpage structure you'd like to see in the URL.
On your visible menu, create a 'Menu item Alias' (under 'System Links') menu item. Set the 'Menu item' option to the parentpage (listed under the hidden menu).
Enjoy. Parentpage is a visible menu item. hiddenpage is available at www.mysite.com/parentpage/hiddenpage
-Nick
No this is not possible with Joomla.
There are several options for you to achieve the same result, I list them in order of ease.
Use joomla redirect component. Simply tell the user to surf to the url he wants, he will then find it in the administrator - components - redirect, where she can insert the non-sef url.
Tell them to use a different prefix: i.e. create a hidden menu where they will add the direct links;
Additionally, in order to remove the id from the url you can:
Install simplecustomrouter extension, it should do the job out of the box but some coding may be required on your part in order for it to work properly; extremely lightweight.
Go for a blasoned SEF extension such as sh440sef, this will add some overhead and may require a lot of work in configuration.
FOR JOOMLA 3.X:
While editing the childmenu just set (under "Linktype") "Display in menu" to "no"... it's simple like that!
Here's a reference to the joomla.docs site
https://docs.joomla.org/images/6/6f/Help-3x-menus-menu-manager-new-menu-item-link-type-en.png
if link is broken just search for "edit menu linktype joomla 3" in future.
I'm glad I can return the many saved searchtime to y'all stackpeople. Go on Community!

Joomla - create hidden test page

I'm a newbie to Joomla. Is there any way to create a test page which is not visible to all but for those which are logged in? I have installed Joomla 1.6
Thanks for any help.
You only need to switch the access permission from "public" to "registerd" in the article editing form.
You can create sample menu through 'menu manger' and assign an article to the that menu item.This menu item will not be visible to the users until you provide some link to main menu or some other visible menu managers.Now, You can access that page by using the following url "http://localhost/practise/index.php/[name of the menu]"

Resources