Force update to breadcrumbs and menus

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
dpatel
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Jan 09, 2009 12:09 pm

Force update to breadcrumbs and menus

Post by dpatel » Fri Jan 09, 2009 12:13 pm

Hi -

I have enabled pagenavigation plugin and updated it (pagenavigation.php file in plugins->content folder) to show titles using the code here:

http://www.eboga.org/pagenav.html

All works great except using these previous/next article links does not update the breadcrumbs or the highlighted item in the menu.

How can I force it do update these?
Last edited by dpatel on Fri Jan 09, 2009 5:48 pm, edited 1 time in total.

dpatel
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Jan 09, 2009 12:09 pm

Re: Force update to breadcrumbs and menus

Post by dpatel » Fri Jan 09, 2009 5:43 pm

With a bit of trial and error I figured it was something to do with how JRoute generates the ItemID. A bit of searching later I found this http://forum.joomla.org/viewtopic.php?p=1511365.

So I changed the JRoute line to be:

Code: Select all

$row->prev = JRoute::_(ContentHelperRoute::getArticleRoute($row->prev->slug, $row->prev->catslug, $row->prev->sectionid));
Did something similar for next link. It all seems to work. I think the pagenavigation.php file should be updated to include this - does anyone agree? The issue I described in the post above applies whether you use the base pagenavigation.php or a modified version to pull in the title.

Now I can have previous and next links!


Locked

Return to “General Questions/New to Joomla! 1.5”