Breadcrumbs for modules

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
Post Reply
tamlyn

Breadcrumbs for modules

Post by tamlyn »

I need a way for modules to add breadcrumbs to the page hierarchy which get displayed by the {breadrumbs} tag. Unless I'm mistaken this isn't currently possible. Not sure what the best way to do it would be because the module is likely to be inserted after the breadcrumbs. I suppose either the module needs to register its breadcrumbs in the constructor or it needs to use ContentPreRender or similar to add the breadcrumbs in afterwards. Both of which are pretty messy.

Can someone more familiar with the cms core suggest a better way?
tamlyn

Re: Breadcrumbs for modules

Post by tamlyn »

(bump)

No ideas? I really need this.
Christophe Lambrechts

Re: Breadcrumbs for modules

Post by Christophe Lambrechts »

I have a look like problem: forum 40393. Also no answers. I tried to analyze the code but this part is quite difficult because of Smarty.

I also need this to improve the module and possible it would give me a better idea of CMSMS working.

Greets Christophe
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: Breadcrumbs for modules

Post by OlafNoehring »

HI

maybe you both want to look at others do/did it. Check out pisearch for example. When it gives you results it's in the breadcrumbs.

Olaf
tamlyn

Re: Breadcrumbs for modules

Post by tamlyn »

Thanks olaf but pisearch is not adding bits to the breadcrumbs. It appears to be because it creates a hidden page when it is installed which it uses to display results in. That's not practical for modules which have many different views. Unless one can somehow create virtual pages at runtime? But that's not very nice either.
newclear

Re: Breadcrumbs for modules

Post by newclear »

I am also looking for solutions on this.
Maybe if the module has custom content type like is in cataloger module it will be added to breadcumbs.
Post Reply

Return to “Developers Discussion”