Breadcrumb Menu Has Incorrect URL

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2007, 08:26 AM
New Pligger
 
Join Date: Sep 2007
Location: Minneapolis, MN
Posts: 12
On my Pligg 9.8.0 install, the URLs are set to /story/10 (ids not words) however, on those pages, the breadcrumb menu link for the current story is set to /Cats/Laser_Declawing_Cats_-_Yea_or_Neigh/ (category and words) which doesn't exist.

Example Page

How do I either fix that in the admin area or via templates so they match?

Thanks
Thomas
Reply With Quote
  #2 (permalink)  
Old 09-20-2007, 12:18 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
It looks as though you have Friendly URLS set to true but didn't add the generated code in the category management to your .htaccess
Reply With Quote
  #3 (permalink)  
Old 09-20-2007, 02:12 PM
New Pligger
 
Join Date: Sep 2007
Location: Minneapolis, MN
Posts: 12
I had them on, then turned them off as I got 404 errors for all the URLs. Even after turning on the .htaccess. Not sure where the issue is, but I turned them off so they worked. Every other generated URL on the site is un-friendly (per say) except for the breadcrumb menu. That's why I'm confused.
Reply With Quote
  #4 (permalink)  
Old 09-22-2007, 06:51 AM
New Pligger
 
Join Date: Sep 2007
Posts: 13
Quote:
Originally Posted by chuckroast View Post
It looks as though you have Friendly URLS set to true but didn't add the generated code in the category management to your .htaccess
I kind of had the same problem when I activated urlMethod 2. Most links didn't work, even admin links I had to go back in history and restore it to urlmetohd 1.

You mentioned generated code. Which code is that and where do I find it?

Appreciate if you can help.
Reply With Quote
  #5 (permalink)  
Old 09-22-2007, 06:56 PM
New Pligger
 
Join Date: Sep 2007
Location: Minneapolis, MN
Posts: 12
Quote:
Originally Posted by bashar View Post
I kind of had the same problem when I activated urlMethod 2. Most links didn't work, even admin links I had to go back in history and restore it to urlmetohd 1.

You mentioned generated code. Which code is that and where do I find it?

Appreciate if you can help.
I do have URL method set to 2.

As an example, you can go here and then to the breadcrumb where it says "Water Skiing Squirrel"

Last edited by LovableCritters; 09-22-2007 at 06:57 PM. Reason: Forum eating URL.
Reply With Quote
  #6 (permalink)  
Old 09-22-2007, 07:40 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by bashar View Post
You mentioned generated code. Which code is that and where do I find it?.
Like I stated above "add the generated code in the category management to your .htaccess "

I'm not sure how much clearer I can be.

The first place I'd look is category management!
Reply With Quote
  #7 (permalink)  
Old 09-22-2007, 11:09 PM
New Pligger
 
Join Date: Sep 2007
Location: Minneapolis, MN
Posts: 12
Quote:
Originally Posted by chuckroast View Post
Like I stated above "add the generated code in the category management to your .htaccess "

I'm not sure how much clearer I can be.

The first place I'd look is category management!
chuckroast

I understand what you're saying, however it's not quite what I'm looking for. Your help is appreciated though.

Yes, if URL method 2 then adding a few lines to the .htaccess is necessary and when I add them, the URLs in question work again. But that's not what I'm looking for.

Since I have Friendly URL's for stories false, my URLs should be /story/[story id] not /story/[story title]

That's the way it is everywhere on the site except in the breadcrumb menu. I want to get the breadcrumb menu link to go to /story/[story id] just like the links from the homepage 'read more' link.

Does that make sense?
Reply With Quote
  #8 (permalink)  
Old 09-23-2007, 12:51 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
I understand now that you explained it in greater detail. Remember we're not mind readers. Help us help you.

open story.php and find
Code:
// setup breadcrumbs and page title
    $main_smarty->assign('posttitle', " - " . $link->title);
    $navwhere['text1'] = $globals['category_name'];
    $navwhere['link1'] = getmyurl('maincategory', makeCategoryFriendly($globals['category_url']));
    $navwhere['text2'] = $link->title;
    $navwhere['link2'] = getmyurl('storycattitle', makeCategoryFriendly($globals['category_url']), urlencode($link->title_url));
    $main_smarty->assign('navbar_where', $navwhere);
Change it to
Code:
// setup breadcrumbs and page title
    $main_smarty->assign('posttitle', " - " . $link->title);
    $navwhere['text1'] = $globals['category_name'];
    $navwhere['link1'] = getmyurl('maincategory', makeCategoryFriendly($globals['category_url']));
    $navwhere['text2'] = $link->id);
    $navwhere['link2'] = getmyurl('storycattitle', makeCategoryFriendly($globals['category_url']), urlencode($link->title_url));
    $main_smarty->assign('navbar_where', $navwhere);
I can't guarantee it will work, but that's what I would do.
Reply With Quote
  #9 (permalink)  
Old 09-23-2007, 02:27 AM
New Pligger
 
Join Date: Sep 2007
Posts: 13
Quote:
Originally Posted by chuckroast View Post
Like I stated above "add the generated code in the category management to your .htaccess "

I'm not sure how much clearer I can be.

The first place I'd look is category management!
DAH... sorry I never noticed it ;/
Reply With Quote
  #10 (permalink)  
Old 09-23-2007, 11:07 PM
New Pligger
 
Join Date: Sep 2007
Location: Minneapolis, MN
Posts: 12
Quote:
Originally Posted by chuckroast View Post
I understand now that you explained it in greater detail. Remember we're not mind readers. Help us help you.

open story.php and find
Code:
// setup breadcrumbs and page title
    $main_smarty->assign('posttitle', " - " . $link->title);
    $navwhere['text1'] = $globals['category_name'];
    $navwhere['link1'] = getmyurl('maincategory', makeCategoryFriendly($globals['category_url']));
    $navwhere['text2'] = $link->title;
    $navwhere['link2'] = getmyurl('storycattitle', makeCategoryFriendly($globals['category_url']), urlencode($link->title_url));
    $main_smarty->assign('navbar_where', $navwhere);
Change it to
Code:
// setup breadcrumbs and page title
    $main_smarty->assign('posttitle', " - " . $link->title);
    $navwhere['text1'] = $globals['category_name'];
    $navwhere['link1'] = getmyurl('maincategory', makeCategoryFriendly($globals['category_url']));
    $navwhere['text2'] = $link->id);
    $navwhere['link2'] = getmyurl('storycattitle', makeCategoryFriendly($globals['category_url']), urlencode($link->title_url));
    $main_smarty->assign('navbar_where', $navwhere);
I can't guarantee it will work, but that's what I would do.
Unfortunately that didn't work, but it gets me in the right area so I can mess around. The code above changed the link name, not the actual link.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade to 1.0 - incorrect bottom menu path huski Questions and Comments 7 07-07-2009 07:08 PM
How to get a dropdown menu for subcategories ? jedimaster Questions and Comments 3 04-04-2008 05:28 PM
Blank Page with Breadcrumb swapshop Questions and Comments 0 08-26-2007 12:31 AM
[Fixed] Beta 9.0 Build 728 - URLMethod2 Breadcrumb Permalinks 404 errors Simpatico Questions and Comments 1 02-18-2007 12:50 PM
problem/reporting drop menu appears black Pentarix Questions and Comments 3 01-08-2006 05:33 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development