Breadcrumbs: show parent but no link

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
hwmd
New Member
New Member
Posts: 9
Joined: Mon Jun 01, 2015 12:28 pm

Breadcrumbs: show parent but no link

Post 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.
hwmd
New Member
New Member
Posts: 9
Joined: Mon Jun 01, 2015 12:28 pm

Re: Breadcrumbs: show parent but no link

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Breadcrumbs: show parent but no link

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Breadcrumbs: show parent but no link

Post by velden »

Don't you just need a 'Section header' content type in stead of of 'normal' page.
hwmd
New Member
New Member
Posts: 9
Joined: Mon Jun 01, 2015 12:28 pm

Re: Breadcrumbs: show parent but no link

Post by hwmd »

Jo Morg wrote: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.
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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Breadcrumbs: show parent but no link

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Breadcrumbs: show parent but no link

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
hwmd
New Member
New Member
Posts: 9
Joined: Mon Jun 01, 2015 12:28 pm

Re: Breadcrumbs: show parent but no link

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

Return to “The Lounge”