Author Topic: Showing breadcrumbs following the category structure  (Read 1024 times)

m.davide82

  • Jr. Member
  • **
  • Posts: 161
Showing breadcrumbs following the category structure
« on: March 20, 2020, 15:10:38 pm »
Hello,

in order to have a clean breadcrumb, without any problems, is there any way to show the breadcrumbs following the category structure instead of the menu structure?


Thanks a lot.
Davide

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 163
    • MiniJoomla
  • VirtueMart Version: 3
Re: Showing breadcrumbs following the category structure
« Reply #1 on: March 20, 2020, 17:53:59 pm »
Hi,

Yes, there is a way to display breadcrumbs without problems and by using the category structure.
Where does it not work?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4246
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Showing breadcrumbs following the category structure
« Reply #2 on: March 20, 2020, 21:25:45 pm »
If you setup corretly your Joomla menus, the category and breadcrumb can have same structure.

m.davide82

  • Jr. Member
  • **
  • Posts: 161
Re: Showing breadcrumbs following the category structure
« Reply #3 on: March 21, 2020, 12:56:55 pm »
Hi,

Yes, there is a way to display breadcrumbs without problems and by using the category structure.
Where does it not work?

Hi Pinochico,

ok, how can I show it following the vm category structure?

If you setup corretly your Joomla menus, the category and breadcrumb can have same structure.


Hi Studio 42,

I know, but if I need to have custom urls, I need to create menu items in a differente manner, not the same of the breadcrumbs.

Example:
School > Trolley
Url will be: school/trolley

If I would like to have only trolley in url, I need to create an hidden menu on the first level and after create an alias in the second level of the main menu.
Doing this job, the breadcrumb will be just Trolley and not School > Trolley.


Thanks a lot,
Davide

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4246
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Showing breadcrumbs following the category structure
« Reply #4 on: March 21, 2020, 13:47:05 pm »
If you want remove the first level, then you have of course to use alias in main menu and real category link in a hidden menu.
But this is only the case for the first level of categories.
Another solutions, is to create an override of the breadcrumb module, or create your own breadcrumb module. I have already code similar request for my customer(eg if a breadcrumb item have no link this need to be removed for google snippets since last year)
The logic is to verify if you have in request option=com_virtuemart. If it's the case, then you write your own breadcrumb links.

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 163
    • MiniJoomla
  • VirtueMart Version: 3
Re: Showing breadcrumbs following the category structure
« Reply #5 on: March 21, 2020, 19:52:30 pm »
Hi,

as wrote Patrick:

- use override of the breadcrumb module, or create your own breadcrumb module (don't forget for new google rich snippets)
- use plugin for Virtuemart Rich Snippets (breadrumb is part of plugin) - https://www.minijoomla.org/extensions/google/rich-snippets-for-virtuemart
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

m.davide82

  • Jr. Member
  • **
  • Posts: 161
Re: Showing breadcrumbs following the category structure
« Reply #6 on: March 23, 2020, 11:04:08 am »
Hi Guys,

I know that I need to do an override, but I don't know how to get the right values! :)

@Pinochico, my template supports the rich snippets, if I buy that plugin, can I disable the rich snippets of your plugin and use it only for breadcrumbs?

Thanks.
Davide

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4246
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Showing breadcrumbs following the category structure
« Reply #7 on: March 23, 2020, 17:29:37 pm »
The code is too long to write. So i cannot write it for you for free.
Contact me, if you need, it should be done in an hour.

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 163
    • MiniJoomla
  • VirtueMart Version: 3
Re: Showing breadcrumbs following the category structure
« Reply #8 on: March 26, 2020, 12:52:05 pm »
Quote
@Pinochico, my template supports the rich snippets, if I buy that plugin, can I disable the rich snippets of your plugin and use it only for breadcrumbs?

Yes
Are You looking on product images?
https://www.minijoomla.org/images/stories/virtuemart/product/rich_snippets-setup-02.jpg
https://www.minijoomla.org/images/stories/virtuemart/product/rich_snippets-setup-03.jpg
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

m.davide82

  • Jr. Member
  • **
  • Posts: 161
Re: Showing breadcrumbs following the category structure
« Reply #9 on: March 27, 2020, 14:53:48 pm »
Hi pinochico,

yes, I saw it, but to be sure it's better to ask.

So you can confirm that the breadcrumbs is made from Virtuemart categories and not from the menu structure?

Thanks.
Davide

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 163
    • MiniJoomla
  • VirtueMart Version: 3
Re: Showing breadcrumbs following the category structure
« Reply #10 on: March 27, 2020, 15:34:54 pm »
Yes,

for breadcrumbs we use category strom (function getPathway), not Joomla menu list
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

m.davide82

  • Jr. Member
  • **
  • Posts: 161
Re: Showing breadcrumbs following the category structure
« Reply #11 on: March 27, 2020, 15:36:05 pm »
Ok, thanks.


Regards,
Davide