Page 1 of 1
Breadcrumbs: show parent but no link
Posted: Mon Jun 01, 2015 12:52 pm
by hwmd
Hello,
I work for a while now with CMS Made Simple, I really like the system but I finally got stuck on a problem:
The website I'm currently working on contains a dropdown-menu and a rule of breadcrumbs. Except for the contact page, the parent pages have no content, so those pages have to be visible on the menu and breadcrumbs but they should be inactive.
If I check "show in menu" and uncheck 'active' on the properties of a parent page, the page is not displayed in the menu anymore so that won't work.
Now I found a simple solution to fix the menu thing inside of CSS, but I can't figure out how to fix this on the breadcrumbs, because there is no li class such as 'menuparent' in there, just a simple link tag.
So my question: Is there a (rather simple CSS?) solution to just inactivate the breadcrumb of the parent-page? I appreciate any help, thanks.
Re: Breadcrumbs: show parent but no link
Posted: Thu Jun 04, 2015 11:30 am
by hwmd
Quite any topic gets a reply except for this one, so is this such a difficult problem?
If so, is it possible to just don't show the parent page on the breadcrumbs? Or to relocate the url?
There are lots of websites with a submenu under an inactive parent so I'm wondering how they fix the parent link inside the breadcrumbs? I'm sure I'm not the first one who struggles with this.
Still any help would be great.
Re: Breadcrumbs: show parent but no link
Posted: Thu Jun 04, 2015 12:25 pm
by Jo Morg
hwmd wrote:Quite any topic gets a reply except for this one, so is this such a difficult problem?
I think it's just a matter of reading the help page of MenuManager module and tweak the template to your needs... There is nothing we could say that isn't already there. Or look at
http://docs.cmsmadesimple.org/modules/core/menu-manager.
Re: Breadcrumbs: show parent but no link
Posted: Thu Jun 04, 2015 12:33 pm
by velden
Don't you just need a 'Section header' content type in stead of of 'normal' page.
Re: Breadcrumbs: show parent but no link
Posted: Thu Jun 04, 2015 1:38 pm
by hwmd
I've read those before, google-ed alot, but I just can't find a solution. The parameters on the link you gave belong to the menu, not the breadcrumbs, and the breadcrumbs nearly got any parameters like 'start_level'. Or do I have to ignore the breadcrumbs tag and tweak a menu tag to create my own breadcrumbs? It's kind of confusing.
@velden: By section header you mean a parent page? I allready got that, some parent pages with subpages, but my parent pages are empty, they just act as a heading for the (real) subpages.
Re: Breadcrumbs: show parent but no link
Posted: Thu Jun 04, 2015 2:04 pm
by velden
hwmd wrote:
I've read those before, google-ed alot, but I just can't find a solution. The parameters on the link you gave belong to the menu, not the breadcrumbs, and the breadcrumbs nearly got any parameters like 'start_level'. Or do I have to ignore the breadcrumbs tag and tweak a menu tag to create my own breadcrumbs? It's kind of confusing.
http://docs.cmsmadesimple.org/tags/core/cms_breadcrumbs
hwmd wrote:
@velden: By section header you mean a parent page? I allready got that, some parent pages with subpages, but my parent pages are empty, they just act as a heading for the (real) subpages.
If you create a new 'page' you can set it's content type (first dropdown). A section header exists to be a parent for sub pages.
Re: Breadcrumbs: show parent but no link
Posted: Thu Jun 04, 2015 2:05 pm
by Jo Morg
hwmd wrote:I've read those before, google-ed alot, but I just can't find a solution. The parameters on the link you gave belong to the menu, not the breadcrumbs, and the breadcrumbs nearly got any parameters like 'start_level'. Or do I have to ignore the breadcrumbs tag and tweak a menu tag to create my own breadcrumbs? It's kind of confusing.
http://docs.cmsmadesimple.org/tags/core/cms_breadcrumbs
{breadcrumbs} tag is deprecated. You should be using
{cms_breadcrumbs} instead, unless you are using a very old and unsupported version of CMSMS. As you can see in the link about
{cms_breadcrumbs} this is just an alias to the
{menu action='breadcrumbs'} tag hence the previous link.
Re: Breadcrumbs: show parent but no link
Posted: Thu Jun 04, 2015 6:01 pm
by hwmd
velden wrote:If you create a new 'page' you can set it's content type (first dropdown). A section header exists to be a parent for sub pages.
Ah, that did the trick! I never knew this was possible, how stupid from me. It shows again the power of CMS Made Simple. Thanks for your help!
@Jo Morg: I didn't knew that alias tag either. I'm not that good with smarty tags yet, but I learned some usefull stuff today, thanks! This topic can be closed.