![]() |
bread crumb static links
I have 2 main categories as follows:
home :: swimwear :: various subdirectories home :: related clothing :: various subdirectories Can I set a static page link separately for swimwear and related clothing? eg. link to swimwear.php instead of home.php?cat=249 |
Re: bread crumb static links
Do you mean simply use a different url or do you want a whole different page?
|
Re: bread crumb static links
A whole different page. eg. www.mydomain.com/shop/swimwear.php
But if you can tell me how to force a particular category that would come in handy too. eg. www.mydomain.com/shop/home.php?cat=62 |
Re: bread crumb static links
Sorry, I'm really not understanding what you are after?
|
Re: bread crumb static links
My swimwear category is id 249 in xcart. So when you click on swimwear in the bread crumb it quite rightly takes you to:
www.bluesport.com.au/shop/home.php?cat=249 However, I want to change that particular category in the bread crumb to take me to this static page instead: www.bluesport.com.au/swimwear.php How can I do this? |
Re: bread crumb static links
I honestly don't know how (or why) you would do that, as the navigation is built on the fly based on the category structure. People expect to be able to go backwards, not redirected to a page they didn't ask for, that is kind of the point of breadcrumb navigation :)
|
Re: bread crumb static links
Thanks ballinor, maybe you can guide me a bit here. Can you have a look at this:
www.bluesport.com.au/newsite/swimwear.php My designer has built a single flash object for the Swimwear subcategories. And he will also do a similar but different one for the "Related Clothing" subcategories. The links to products have therefore needed to be hard coded in in. I think I would ordinarily build this into customer/main/subcategories.tpl. But how can I then have a different flash object for swimwear and a different one for related clothing in the same tpl? Same issue keeps going, this would also affect the subcategories.tpl in product listing wouldn't it? Changing the bread crumb reference seems the easiest solution to me. I'm not sure if you could build the same design in flash with the fancy categories add-on module? Your comments would be much appreciated on this one. I just went through one your earlier threads on custom buttons by the way, worked great as you can see. That was a good post! |
Re: bread crumb static links
Can't say as I recommend Flash, but if you are set on using it the easiest solution would be to edit subcategories.tpl and use Smarty to name your Flash objects. You would need to name your flash files to correspond to the ProductID for example, so you could use:
{$subcat.categoryid}.swf for example. Otherwise, you will have to completely rebuild the breadcrumb functionality. |
Re: bread crumb static links
I found the solution, here it is for anyone that needs it: You can modify the "home.php" file, add the following code: foreach ($location as $k => $v) { if ($location[$k][1] == "home.php?cat=249") { $location[$k][1] = "../newsite/swimwear.php"; } if ($location[$k][1] == "home.php?cat=250") { $location[$k][1] = "../newsite/related-clothing.php"; } } before this code: # Assign the current location line $smarty->assign("location", $location);
|
All times are GMT -8. The time now is 04:43 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.