View Full Version : Home in the breadcrumb trail
Can someone tell me where I can change the Home reference n the breadcrumb trail. Cant spot it. I want it to point to the shopping home as it does but not that name as it is in a sub-directory. I know it is there somewhere...
Confuscius
29-03-07, 18:57
On the same issue, the crumb points to DOMAIN/index.php and I would prefer this to be DOMAIN/ (for a number of reasons, including not wishing to confuse Google!) - I just cannot find where this bit is generated, I assume in one of the classes, just can't find it - Please advise.
It appears to be in includes/constants.inc.php on Line 54. Deleting .'index.php' (note the dot before 'index.php') should point directly to the DOMAIN/ without the index.php.
Confuscius
29-03-07, 21:55
Thank you very much for the solution. Excellent!
Paul
Glad you got your answer - any help regarding the original post?
Hi Bionic,
Untested but I would guess adding the directory name in front of index.php would do the trick. Same file as above, line 54: define('T_INDEX', HOME_URL.'/DIRECTORYNAME/index.php');
Thanks Shopezuk, I will have a play with that!
Thanks for this, wouldn't have found it without your post!! Cheers
But...................
I have an issue with all the other links in the breadcrumb.
Where are those formatted?
Oh, and the <<previouspage and next page>> "ListOffSet" links too
Bit of a pain in the anus as ive managed to find the formatting for every other link in the api, just can't get these.
Cheers
Confuscius
02-04-07, 01:24
Breadumb arrays appear to be built in /includes/classes/class.shopcore.php - I'd also like the breadcrumb reversed and was looking at this issue a few mins ago!
/includes/elements/nav_product_list.php for the navigation links.
HTH
Paul
Cheers paul!!
That breadcrumb is driving me crazy!!
Soon to fix it though...
Just found the next and previous links in that file. Its also where the pagination is created, nearly forgot about those links!!
*edit*
You beauty!!
One api with fully mod rewritten URLs
Get in!
Confuscius
02-04-07, 11:24
Hi Andy
"One api with fully mod rewritten URLs" - no doubt, this WILL be a request by a lot of users and no doubt AW will supply a SEO friendly version alternative if enough people request it. Any chance of sharing the revised code or perhaps you could negotiate a deal with AW to save them some work?
Request to AW - please can we have an SEO friendly version of the script with nice file names?
Seriously, the Shop Window application should have a global switch to turn on SEO friendly URLs and it sounds like Andy has done most of the work already for this.
Well done and keep gloating!
Paul
Ive just found another "duplicate page" problem with the breadcrumb.
In the product display, the very last link in the breadcrumb links to the exact same page but with a different URL including the merchant ID.
Ive had a very unsuccessful play around to try and get it to link to itself, which would be like having a contextual "permalink" on the page.
has anyone else noticed this and managed to sorted it out?
Cheers paul!!
That breadcrumb is driving me crazy!!
Soon to fix it though...
Just found the next and previous links in that file. Its also where the pagination is created, nearly forgot about those links!!
*edit*
You beauty!!
One api with fully mod rewritten URLs
Get in!
Hi, see you have managed to do a lot with this program. I am trying to add to the url to make it more search engine friendly. Where is it made and how do you add to it? I dont want to copy, just want to know where to start looking in the code so I can play about with it.
Cheers, ejmo.
Its a nightmare ejmo!
You can simply get the.htaccess to show a friendly url in the location bar, but every link on the api will still be full of get data. Whats the point of rewriting it if you're advertising to google that it's dynamically rewritten?
So, you need to edit nearly every file.
At least edit every file that produces a URL for a link.
I left the original link creation alone, but then added many str_replace() functions so it would eventually create a decent url for each link.
then get htaccess to figure out the actual url.
This allows a friendly URL on the page as well as in the location bar.
The problem is there's more Get data and more links than you think.
You could go through everything, but then a month down the line you'll find you've missed stuff with ordering data, or listlength data.
nearly 2 months down the line and Im only just confident that Ive got everything.
Hi, thanks for the reply. Sounds like a lot of work to do this properly. I think that this would take me well beyond the release of an update to the shopwindow program, then its back to the begining. I have done some changes with seo in mind and thought that if I could get the product name in the url somewhere it would help. Not sure how much weight google puts on the url anyway. If I can just tag the produt name to the end it may be worth the work. I have seen this done, how would I go about this? Is there anything I can read to show me hows its done, I am new to php and htaccess so it needs to be easy to follow.
Cheers, ejmo