Question about breadcrumbs and such.
Okay. So I use Vanilla Version 2.1.8p2
I have homepage layout set to Categories, Discussions layout set to Table, and Categories Layout set to Table. I also Display root categories as headings.
My problem is that when you are viewing a discussion the Breadcrumbs allow the user to Click on the Root headings. This is no bueno.
I would rather have the "span.Back" element (That displays at the bottom of the Leave a Comment box) display in the Breadcrumbs position at the top of the page as it only displays Home, and the Page before the Discussion being Viewed but I cannot find a way to get this before the content. Any help is greatly appreciated.
Best Answer
-
hgtonight MVP
This is a known issue: https://github.com/vanilla/vanilla/issues/2323
As far as your question, here is the code that spits out the category back link:
if ($CategoryID = $this->Data('Discussion.CategoryID')) { $Category = CategoryModel::Categories($CategoryID); if ($Category) echo ' <span class="Bullet">•</span> '.Anchor(htmlspecialchars($Category['Name']), $Category['Url']); }
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
6
Answers
This is a known issue: https://github.com/vanilla/vanilla/issues/2323
As far as your question, here is the code that spits out the category back link:
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
You are the best!