I have Drupal 7 with NodeGallery installed. I have several galleries in on my website.
Some of those galleries are linked to the main menu items and always visible and some of those are linked to menu items visible only after the user has signed up.
But when someone is logged-in and for example sends a link to gallery (like http://my.site.com/?q=node/1477), that is hidden for external (unlogged) users, they see that gallery, although they don't see it in main menu.
The option in Content management (for this gallery) "Is private" and the combo box "Authenticated only" has no effect (has effect only with the visibility of the link in main menu). If someone knows the link, he has access to the gallery. That is not desirable.
How can the permissions of view of the concrete gallery be restricted to only authenticated user?
For controlling the logged in and logged out menu items you can use menu item visibility module URL: https://www.drupal.org/project/menu_item_visibility where you can control which menu item is visible to which role.
And you can use hook_node_view hook to check which node(s) to be visible to which roles of user or you can use nodeaccess module to have a backend to make your node visible to which user URL: https://www.drupal.org/project/nodeaccess
Thanks
Related
I've created a view with path /user/%/articles to list all articles authored by the user, and now I want to add it as a tab on the user profile page. I tried to configure the menu in the view's configuration page but I can't tell what should be used as the parent menu.
Does anybody know how to do this correctly?
Figured this out.
Drupal 8
Path:/user/%user/articles
Menu: User account menu > My account
Url should be /user/%user/articles and menu item entry of the view settings should be set to "menu tab".
All was explaned in this post : https://www.ostraining.com/blog/drupal/drupal-8-creating-views-of-content-in-tabs/
I have update a page in my wordpress site using web admin back end, but what I see is that even if I update a page, it does not get updated online. Moreover, some of the content of the page which I see online /live are not actually texted in the area where we put the content.
On the right side navigator, in the page attribute area Parent has been set to No Parent, template --> Home Page.
Can you please let me know what could be the possible reason why the live content of the page is different from what I can see in the actual text area through web admin panel?
Also updating a page does not reflects on the page as well for that particular page.
First make sure you are editing the right page. Click in the frontend adminbar on edit instead of navigating in the backend through the pages list.
Secondly it can be any caching related issue. Check out if there are any plugins or settings for this.
Areas that are on the page but not editable via the content can be widgets or any kind of theme builder stuff. Check in the backend design->widgets.
The page hierarchy (parent: no parent) can be differ from the actually website navigation. Check out design->menus. It is possible to build other hierarchies in the menus.
I have created a custom menu in Drupal 6.3 and when I accessed the menu using the menu_navigation_links it is returning the result only for the home page but for other pages it is returning the empty.
You must publish content if you want it to be visible in menu. That goes even for back-end, which is really strange. Also check on access rights. Is that hidden content accessible to user role you are using.
The Drupal webiste I'm working on: http://student17.cas181s.com/project
I have a menu dropdown, with menu items that have children, I've already check-boxed the "show as expanded" for literally all my menu items. Visitors viewing my front-end cannot see this (only I can see this, in back-end, as admin). Why is this? I'm using Bartik 7.34 theme.
Check out privilages for anonymous user for that content that your friends cant see. In drupal if someone can't see page content he won't see link to that page also. Maku sure that pages are published - admin can see all the content but most of the user groups only published one. At end...clear the cache.
To all the Drupal geniuses out there: I have a page that is viewable only by authenticated users but I want the link to the page to show up on the public footer menu. Right now Drupal hides the menu link unless the user is logged in. I want it there whether the user is authenticated or not so if they aren't logged in, it takes them to the login page. No matter what I do, Drupal keeps hiding the menu link. How can I override it?
In Drupal 7, you can set the user roles that can view a specific block in the Blocks section. Then, i assume that if your menu is in the footer, you assigned that menu to the Footer block in the Blocks section. So, you only have to "Configure" the Footer block and set which user roles do you want that can view this menu int he "Visibility Options" section. By default, all of the options are unchecked, which means that the block is visible for all of the users. Notice that if there is more content in the Footer sections and you don't want that content visible for all of the users, then you have to create a new block, only for the menu.
Any other question, i'll be happy to help you. Regards.