Making Drupal 7 show a menu link regardless of user authentication - drupal

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.

Related

WordPress: Not displaying changes of updated pages

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.

Drupal 7 - Node Gallery visible for logged users only

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

In Drupal front-end, menu drop-down hierarchy not displaying

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.

How to make my calendar appear on my home page in Drupal

I am new to Drupal and am using the default Bartik theme to learn the environment. I've been able to install the Calendar module and have it appear on all the pages I created. These pages are accessible from the menu Tabs I have created across the top of my page header. However, whenever I click on the Home Tab the sidebar calendar is removed. How can I get my sidebar calendar to appear on my HOME page just like it does for my other pages that I access through the Menu Tabs?
Check your Block settings (www.yoursite.com/admin/structure/block) there should be calendar block in sidebar. Check that the block is marked to be visible in all pages (from block settings).
OK here's the solution: Go to STRUCTURE --> BLOCKS and click on the "configure" link for the Calendar View in the block section SIDEBAR FIRST. Then click on the Content Types TAB, and UNCHECK all the content types. I thought by checking them all it would make the calendar visibal everywhere, but apparently that applied a restriction to the Home page. By Unchecking all the boxes, the view is now visible on the Home page.

Displaying a menu/block in a page/node

I'm new to Drupal and making some changes to an exisiting site.
I have a page with a menu in the left side bar, which shows on all the pages in that menu apart from the one i've added. I've done it before where you have to add the URL of the page you want the menu to show somewhere in the admin panel for the menu to show.
If i go to: site building > blocks > block_name and then tick 'Users cannot control whether or not they see this block.' The menu wil show. But it will also show on pages I don't want it to.
Do you know where in the Admin I need to go to allow the menu to show on this new page.
Thanks in advance.
After hours of hunting around I've found the answer, the block has text box at the bottom of the page 'page specific settings' where you add the URL of the page you wish the block to show on.
You can use menu_block module.
It creates the menu inside a block and treats it EXACTLY like a block.
Hope this helps... Muhammad.

Resources