Breadcrumb formatting outside of Elemental

Permalink
I use my own themes in Concrete5.8 which means that the Breadcrumb Design and Custom template doesn't work (it seems it only works with the Elemental theme). I spent a while trying to sort this out and I found a simple solution. Add this code to your css file:

ol.breadcrumb li { display: inline; }
ol.breadcrumb li+li:before {
  padding: 8px;
  color: black;
  content: "/\00a0";
}
ol.breadcrumb { border-bottom: 1px dotted #8ad2cc; margin-bottom: 20px; padding-bottom: 20px; }


Obviously change the colour if you want and also you don't need the border at the bottom but it's there if you do!

Another frustrating thing I found was that the breadcrumb autonav ignores the Exclude from Nav attribute. I can see the reasoning behind this but it is very annoying if you don't want this but simple to rectify -

Go to Concrete > blocks > autonav > templates > breadcrumb.php

$navItems = $controller->getNavItems(false); // Ignore exclude from nav

Change true to false

I know you are supposed to copy that file to your own blocks folder but I have never managed that with any success! Any tips would be appreciated...

I really hope this helps someone or if anyone has a better and simpler method please let me know!

ppisoban
View Replies: View Best Answer
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
To override the autonav block copy the templates folder and the view.php file into application/blocks/autonav folder (create the autonav folder).
Alternatively, copy the entire autonav block from concrete/blocks into application/blocks and delete everything except the view.php file and the templates folder...

If successful when you visit your environment page in system & seetings you should see these overrides.
# concrete5 Overrides
blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates/responsive_header_navigation/view.css, blocks/autonav/templates/responsive_header_navigation/view.js, blocks/autonav/templates/responsive_header_navigation/view.php, blocks/autonav/templates/responsive_header_navigation, blocks/autonav/templates, blocks/autonav/view.php, blocks/autonav
ppisoban replied on at Permalink Reply
ppisoban
Thanks so much, that worked a treat! I was just copying everything over, not just the templates folder and the view.php, which is obviously why it wasn't working!
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Yes, copying everything over will throw namespace and class errors