Page 1 of 1

[solved] {cms_breadcrumbs}

Posted: Mon Jul 30, 2012 11:32 am
by zigge
Started with my upgrade process today, letting my testbed be the first one out. After some initial issues related to the guestbook module, everything seems to work as it should.

However, I am keen to replace old depreciated stuff with new supported ones, in this case the tag {breadcrumbs} that should be replaced by {cms_breadcrumbs}.

However, I find no documentation whatsoever around this tag, and it does not seem to work either. Just adding {cms_breadcrumbs} does not show any breadcrumbs. I do not find any tag with that name in the plugins directory either.

The old way still works, but I do not like things i do not understand:-)

Anyone that can point me in the correct direction?

Re: {cms_breadcrumbs}

Posted: Mon Jul 30, 2012 12:11 pm
by jce76350
What is your breadcrumbs actually?

In V 1.11 you can use {cms_breadcrumbs root='Home'} tag
or {menu action='breadcrumbs'}

Re: {cms_breadcrumbs}

Posted: Mon Jul 30, 2012 1:18 pm
by zigge
Well, You can see the breadcrumbs on http://www.skanskakustfiskeklubben.se(in Swedish though...)

My working tag is today {breadcrumbs starttext='Du är här' root='Home' delimiter='»'}

using {cms_breadcrumbs} or {cms_breadcrumbs root='Home'} or {menu action='breadcrumbs'} does not give any breadcrumbs. Nor does it give any debug errors either.

Re: {cms_breadcrumbs}

Posted: Mon Jul 30, 2012 5:53 pm
by zigge
Now done some more testing. Just placing {menu} works, giving an unordered list. adding {menu action='breadcrumbs'} don't generate any output at all. Tried placing it in different places in my template, with no difference.

No errors shows when using debug=true, and I have tried to upgrade another testbed with the same result.

Doing a brand new installation in parallell on one of the servers, the {cms_breadcrumbs} works as it should}

Very strange, and I do not know where to go from here.

Re: {cms_breadcrumbs}

Posted: Mon Jul 30, 2012 6:31 pm
by Dr.CSS
Try running the checksum to make sure the file made it up...

Re: {cms_breadcrumbs}

Posted: Mon Jul 30, 2012 6:47 pm
by zigge
First thing I did. Checksum is OK.

Re: {cms_breadcrumbs}

Posted: Mon Jul 30, 2012 7:24 pm
by zigge
Allright, saving my templates, removed MenuManager and installed it again gave partial success.

Now I get breadcrumbs for subpages, but when on first page I do not get the breadcrumb for that page. It only works for subpages.

Re: {cms_breadcrumbs}

Posted: Mon Jul 30, 2012 7:42 pm
by jce76350
using {cms_breadcrumbs root='Home'} only the pages with the menu is "Active" are visible in the breadcrumbs

Re: {cms_breadcrumbs}

Posted: Tue Jul 31, 2012 6:12 am
by zigge
jce76350 wrote:using {cms_breadcrumbs root='Home'} only the pages with the menu is "Active" are visible in the breadcrumbs
You are correct. My 'Home' page is not active in the menu, and enabling 'show in menu' gives me the breadcrumbs.

Now, this behavior differs from the old {breadcrumb} which showed even my inactive 'Home' page. But that should be easily fixed by some {if} logic looking at the menu object in my template, so I consider this one solved now.