Can breadcrumbs root point to ./ ?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
gsalmeri

Can breadcrumbs root point to ./ ?

Post by gsalmeri »

I am happily using CMSMS in the site http://mondodomani.org/filosofiatorvergata/ (whit prettyURLs).

In the template I use {breadcrumbs starttext='' root='home' delimiter='>'} But I would prefer a slightly different effect: I would like the root to point to  ./ instead of /home/ (I do not like that the same page, i.e. the Home Page, is linked with two different URLs). Is this possible?

Thank you very much in advance!
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Can breadcrumbs root point to ./ ?

Post by tsw »

have you tried something like root="/"? (untested so it might not work)

maybe breadcrumbs needs another parameter, something like "root_url" lets see what we can do
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Can breadcrumbs root point to ./ ?

Post by Elijah Lofgren »

gsalmeri wrote: In the template I use {breadcrumbs starttext='' root='home' delimiter='>'} But I would prefer a slightly different effect: I would like the root to point to  ./ instead of /home/ (I do not like that the same page, i.e. the Home Page, is linked with two different URLs). Is this possible?

Thank you very much in advance!
You're welcome.  :)

I have added a root_url parameter to the breadcrumbs plugin: http://viewsvn.cmsmadesimple.org/viewsv ... 1&view=rev

You can replace your current plugins/function.breadcrumbs.php with this one:
http://viewsvn.cmsmadesimple.org/viewsv ... iew=markup

Then call it with something like this:

Code: Select all

{breadcrumbs starttext='' root='home' delimiter='>' root_url="./"}
Enjoy,

Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
gsalmeri

Re: Can breadcrumbs root point to ./ ?

Post by gsalmeri »

Elijah Lofgren wrote: Enjoy,

Elijah
Sorry to read your post with so much delay, and thank you very much for helping me! I hope that this will be useful also to the whole CMSMS community...
Locked

Return to “CMSMS Core”