Add breadcrumbs to custom module

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Locked
Ertenal
Forum Members
Forum Members
Posts: 19
Joined: Fri Sep 30, 2011 2:28 pm

Add breadcrumbs to custom module

Post by Ertenal »

I am creating a custom module for cmsms but i can't figure out how to add items to the breadcrumbs list.

Say i have a custom page named 'Products', a list page with some products. And in that page you can go to any of the products.

On that page a breadcrumbs list like Home -> Products -> Product #1 would be perfect. But how can i do that?
Ertenal
Forum Members
Forum Members
Posts: 19
Joined: Fri Sep 30, 2011 2:28 pm

Re: Add breadcrumbs to custom module

Post by Ertenal »

Is this simply not possible?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Add breadcrumbs to custom module

Post by Dr.CSS »

If you know PHP you may want to look at the real "Products" module to see how it does it...
Ertenal
Forum Members
Forum Members
Posts: 19
Joined: Fri Sep 30, 2011 2:28 pm

Re: Add breadcrumbs to custom module

Post by Ertenal »

The only thing they have is Home > Products.
I also want to show Home > Products > Product detail
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Add breadcrumbs to custom module

Post by Dr.CSS »

Sorry I thought it had a breadcrumb...
kneep
Forum Members
Forum Members
Posts: 20
Joined: Mon Jul 28, 2008 7:45 am
Location: Netherlands

Re: Add breadcrumbs to custom module

Post by kneep »

Ertenal wrote:The only thing they have is Home > Products.
I also want to show Home > Products > Product detail
Did you find a solution for this problem? I have the same wish to add products to the normal {breadcrumbs} tag
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Add breadcrumbs to custom module

Post by Jos »

As far as I know this is not possible.
{breadcrumbs} only handles real cms pages, not module-output
You could create your own module-breadcrumbs smarty-variable or tag and add it to your pagetemplate

Code: Select all

{breadcrumbs}{$mymodulebreadcrumbs}
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Add breadcrumbs to custom module

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “Developers Discussion”