Support Center

Knowledgebase
View categorized listing of all common frequently asked questions.
Video Tutorials
Create a Movie & TV Show review website.
Customize the jReviews themes.
Review user profiles with the Everywhere addon.
Forum
Community forum
Submit a Ticket
Use your client area email to access the ticket system.
Downloads
Guides, modules and more...
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 07, 2009, 05:09:56 PM
22780 Posts in 5218 Topics by 2974 Members
Latest Member: Vijitha
News: Do not post any jReviews files or large amounts of code in the forums please. Only template files and code are allowed.
 
jReviews Support Forum  |  jReviews 1.x  |  Tips & tricks  |  Full breadcrumb in com_content « previous next »
Pages: [1]
Author Topic: Full breadcrumb in com_content  (Read 1720 times)
xtreeq
Jr. Member
**
Offline Offline

Posts: 32


WWW
« on: January 18, 2008, 04:41:27 AM »

Since the current com_content beadcrumb has only section >> category here's how to add directory to the breadcrumb:

In jreviews.plugin.php arround line 185 find:
Code:
// Get Itemids
$jr_Itemid = new jRGetItemid();

After add:
Code:
$_itemid_dir = $jr_Itemid->getDir($categorySetup->dirid);
$query = "SELECT `desc` FROM #__jreviews_directories WHERE id = '$categorySetup->dirid'";
$database->setQuery($query);
$dir_title = $database->loadResult();
$directory_url = sefRelToAbs("index.php?option=com_jreviews&Itemid=".$_itemid_dir);
$row->directory = '<a href="'.$directory_url.'">'.$dir_title.'</a>&nbsp;';

Now change this line:
Code:
$row->section = '<span class="jr_content_pathway">'.$row->section.'</span> '.$row->category;

To:
Code:
$row->section = '<span class="jr_content_pathway">'.$row->directory.'</span> '.'<span class="jr_content_pathway">'.$row->section.'</span> '.$row->category;
« Last Edit: January 18, 2008, 06:49:49 AM by Alejandro » Logged
crystalitc
Full Member
***
Offline Offline

Posts: 92



« Reply #1 on: January 20, 2008, 02:51:19 PM »

Thanks, Works great.
Just dufferent line numbers for me.
Glenn
Logged
andreasa
Hero Member
*****
Offline Offline

Posts: 271



WWW
« Reply #2 on: January 21, 2008, 08:10:16 AM »

Great!
Thank you very much.

Alejandro..... include this in next release please!  Wink
Logged
mrblad
Newbie
*
Offline Offline

Posts: 17


« Reply #3 on: November 13, 2008, 07:46:09 AM »

Hi,

Where is the jreviews.plugin.php file?

I can't seem to find it anywhere!

Thanks.
Logged
Bandlink
Full Member
***
Offline Offline

Posts: 69


« Reply #4 on: November 13, 2008, 08:31:32 AM »

I think the file names have changed somewhat since this post was created.  Not sure offhand what the new file would be or if this would be immediately pluggable into the latest jReviews.
Logged
mrblad
Newbie
*
Offline Offline

Posts: 17


« Reply #5 on: November 13, 2008, 02:11:07 PM »

Hi Bandlink,

Thanks for that. I am running jReviews 2.0.7.31 and I can't find that code anywhere!

Does anyone know how to change it so that you see the full breadcrumb list on the listings page, i.e...

Directory > Section > Category > Listing

At the moment as soon as you go to a listing page it only shows you

Section > Category > Listing

I have downloaded the whole of jReviews from the server and tried to search the folder for some of the bits of code in this original post to try and find it, but to no avail. So if anyone knows how to modify the breadcrumb trail to show all 4 items on the listings pages I would be most grateful!

Thanks.
Logged
Pages: [1]
« previous next »
    Jump to: