Page 1 of 1
Breadcrumbs for modules
Posted: Thu Oct 05, 2006 1:33 pm
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?
Re: Breadcrumbs for modules
Posted: Sat Oct 28, 2006 5:48 pm
by tamlyn
(bump)
No ideas? I really need this.
Re: Breadcrumbs for modules
Posted: Sun Oct 29, 2006 12:18 am
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
Re: Breadcrumbs for modules
Posted: Sun Nov 05, 2006 9:49 am
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
Re: Breadcrumbs for modules
Posted: Mon Nov 06, 2006 4:12 pm
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.
Re: Breadcrumbs for modules
Posted: Sat Nov 11, 2006 8:34 pm
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.