how to make listing page created by views in the breadcrumb of single item of specific content type like so:
Home >> Activities: (created by views) Home >> Activities >> item page: (desired breadcrumb)
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
Here's the Old School way of doing it.
I'm assuming that this view is showing a content type called Activities and the view will be at
/activities and all the activities (the nodes) the view is showing need to be at
Have a view named Activities. In the view settings set up Add this to your "Main Menu" menu in the root.
Install PathAuto and set up the template for activities to be
activities/[node:title] over at admin/config/search/path/patterns
Then set up your content type to always add a menu item to the Main Menu -> Activities section I did this with articles:
After that, you will need to edit your theme to show the current page or add a module to do so. See Show current page on Drupal 7 breadcrumb
When it's all said and done... you will have a breacrumb with what you wanted. This is it without the current theme or module fix.
Drupal core will build breadcrumbs based on the menu structure. So if you manage to create a menu link for each of your activities, then Drupal core has you covered (see the answer by General Redneck).
If you don't want a new menu link per activity node, then you can use Path breadcrumbs or Crumbs, see below.
There are different modules that can help you with breadcrumbs, and I am sure more than one of them can help with this particular issue.
One of them is Crumbs. If you choose this, here are some steps for configuration (after enabling the module):
admin/structure/crumbs/entity-parent, and specify the views page as the parent path for the node type of your choice.
admin/structure/menu, edit the main menu (or another menu), create an item that links to the views page, and give it a title like "Activities". (*)
admin/structure/crumbs, make sure that the
menu.hierarchy.main-menuare enabled. Or just enable
(*) Creating the menu item is one option you have so that Crumbs can determine a title for the breadcrumb item that points to the activities view. There are other ways, but this is the most straightforward, and you probably want to create this menu link anyway.