Main menu
Home
News
News from Alphaplug
Download
Forum
Support us
Search
Links
Demo site
Contact
Invite a friend
Joomlastreets News
Sign-up





Lost Password?
No account yet? Register

If you find my free stuff useful, why not leave me a little something with PayPal.

Donations are greatly appreciated, and help with the costs of providing FREE Joomla! addons.




Welcome, Guest
Please Login or Register.    Lost Password?

QuickNav 2.0.1 problem
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: QuickNav 2.0.1 problem
#4843
QuickNav 2.0.1 problem 2 Years, 10 Months ago Karma: 0
If selecting not to show blog entries, quickNav fails to list menuitems that are of Blog layout format.

This means that neither blog entries nor blog container pages are displayed.
jossi
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/25 21:33 By jossi.
The administrator has disabled public write access.
 
#4844
Re:QuickNav 2.0.1 problem 2 Years, 10 Months ago Karma: 0
This is the fix to resolve this:

in helper.php

Replace this:
Code:


 if ( strpos( $row->link, 'com_content&view=category&layout=blog' ) ) {
if ( preg_match('#blog&id=(.*)#ui', $row->link, $m) ) {
$catid = $m[1];

if ( $display_blog && $catid ) {
$indentpos = (strpos($row->treename, "-")/6)+ 2;
$listBlog = modQuickNavHelper::getBlogCategories($catid);
$row->link .= "&Itemid=$row->id";
$urlb = JRoute::_( $row->link ) ;
echo "<option value='".$urlb."'>".$row->treename."</option>";
if ( $listBlog ) {
foreach ( $listBlog as $row2 ) {
$blog_link = JRoute::_(ContentHelperRoute::getArticleRoute($row2->slug, $row2->catslug, $row2->sectionid));
echo "<option value='".$blog_link."'>".str_repeat( '&nbsp;', $indentpos )."- ".$row2->title."</option>";
}
}
}
break; 



with this:

Code:


if ( $display_blog && strpos( $row->link, 'com_content&view=category&layout=blog' ) ) {
if ( preg_match('#blog&id=(.*)#ui', $row->link, $m) ) {
$catid = $m[1];

if ( $display_blog && $catid ) {
$indentpos = (strpos($row->treename, "-")/6)+ 2;
$listBlog = modQuickNavHelper::getBlogCategories($catid);
$row->link .= "&amp;Itemid=$row->id";
$urlb = JRoute::_( $row->link ) ;
echo "<option value='".$urlb."'>".$row->treename."</option>";
if ( $listBlog ) {
foreach ( $listBlog as $row2 ) {
$blog_link = JRoute::_(ContentHelperRoute::getArticleRoute($row2->slug, $row2->catslug, $row2->sectionid));
echo "<option value='".$blog_link."'>".str_repeat( '&nbsp;', $indentpos )."- ".$row2->title."</option>";
}
}
}
break;
if (strpos( $row->link, 'com_content&view=category&layout=blog' ) ) {

$urlb = JRoute::_( $row->link ) ;
echo "<option value='".$urlb."'>".$row->treename."</option>";

}

jossi
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1