Adding Breadcrumbs to your pages

Phoca Download - download manager
brentwilliams2
Phoca Member
Phoca Member
Posts: 26
Joined: 23 Aug 2009, 01:22

Adding Breadcrumbs to your pages

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Adding Breadcrumbs to your pages

Post by Jan »

Hi, the breadcrumbs are displayed by the module breadcrumbs, why to double them in component? :idea:
If you find Phoca extensions useful, please support the project
brentwilliams2
Phoca Member
Phoca Member
Posts: 26
Joined: 23 Aug 2009, 01:22

Re: Adding Breadcrumbs to your pages

Post by brentwilliams2 »

Just for people who don't use that module...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Adding Breadcrumbs to your pages

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply