Drupal 8 - How to add a tab in user profile page? - drupal

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/

Related

Add link to Buddypress profile tab secondary menu

Hi I would like to add a link through the WordPress menus to goto a Buddypress Profile tab and to its secondary menu for the logged in user.
Example link would be like site/members/{usernamehere}/my-profile-menu/test/
Following another guide online I was able to add the my-profile-menu part but would like to add its child links to the tabs into the main wordpress menu.
https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/#add-menu-links-specific-to-the-logged-in-member
You can create dynamic BuddyPress profile links for the logged-in user by using 'me' as the user name.
Example: .../members/me/my-profile-menu/test/

Adding buddypress profile menu items in wordpress primary menu

Is it possible to add buddypress profile menu in primary menu of the wordpress them. If is possible please guide me how can I do this. I also want to remove counts in primary menu only.
Thanks
Yes, it's possible.
Here is an appropriate page in BuddyPress codex: https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/
Below is a small excerpt from that page:
Links include: Sitewide Activity, Members Directory, Groups Directory, and/or Blogs Directory (multisite only).
Navigate to Appearance > Menus.
Create a new menu.
Under the “Pages” section, select the links to the BuddyPress pages.
Click on the “Add to Menu” button.
Arrange the menu links as you like it.
Click on “Save the Menu” button.
Go to the “Manage Locations” tab and assign this menu to a theme menu location.
Click save and refresh your site to see your new custom menu in place.
You can also add links specific to the Logged-in Member only (all profile links).

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

Making Drupal 7 show a menu link regardless of user authentication

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.

Drupal Page View not being added to Main Menu

Drupal 7 Views has a "Menu" button that should allow one to add a Page View to the Main Menu. I have cloned a view, modified the "Path" and "Menu" parameter. It seems simple enough, because when I create a View via "Add View" I can add that view to the main menu. But, cloning a view and then modifying the "Menu" params does not cause a menu item to show up in the main menu. I have cleared cache a number of times but still nothing appears in the main menu.
Thanks
I know this may be silly, but do you happen to save the view after cloning?
Also, make sure that the path is not already existing within you Drupal site.
A view creates a menu entry, check within you menu items listing that this entry is enabled.

Resources