Page 1 of 1

Adding Breadcrumbs to your pages

Posted: 19 Aug 2011, 21:39
by brentwilliams2
I don't know about you all, but I think this improves usability of the component, and I thought you all might enjoy. Feel free to message with any improvements/thoughts.

In the category default.php file, I inserted the following code right below "<div id="phoca-dl-category-box">"

Code: Select all

echo '<div style="margin-left:10px;"><a href="' . JRoute::_(PhocaDownloadHelperRoute::getSectionsRoute()) . '">'. $this->params->get('page_title').'</a>&nbsp;&#187;&nbsp;<a href="'. JRoute::_(PhocaDownloadHelperRoute::getSectionRoute($this->section[0]->id, $this->section[0]->alias)).'">';
echo $this->section[0]->title;
echo '</a>&nbsp;&#187;&nbsp;<a href="' . JRoute::_(PhocaDownloadHelperRoute::getCategoryRoute($this->category[0]->id, $this->category[0]->alias, $this->category[0]->sectionid)) . '">';
echo $this->category[0]->title;
echo '</a></div>';
Hope that helps!

Re: Adding Breadcrumbs to your pages

Posted: 20 Aug 2011, 23:49
by Jan
Hi, the breadcrumbs are displayed by the module breadcrumbs, why to double them in component? :idea:

Re: Adding Breadcrumbs to your pages

Posted: 21 Aug 2011, 04:45
by brentwilliams2
Just for people who don't use that module...

Re: Adding Breadcrumbs to your pages

Posted: 25 Aug 2011, 13:17
by Jan
Ok