Guest rhyan Posted July 18, 2005 Share Posted July 18, 2005 I'm working on a new design and it's near completion. One thing I'd like to do is make the currently selected category clickable. I think this would be a great convenience. For example, if I select a product in Statuary, which is under the parent category Patio & Garden the following is displayed in the product header: Location: /Patio & Garden/Statuary The parent category, Patio & Garden, is clickable, but the category the product is actually in, Statuary, is not. I've looked through styleTemplates/content/viewProd.tpl and found that what needs to be changed is the php {CURRENT_DIR} refers to, but I'm not sure how to change this. styleTemplates/content/viewCat.tpl also calls for {CURRENT_DIR} in the category header. I've looked through includes/content/viewProd.inc.php and found the line: $view_prod->assign("CURRENT_DIR",getCatDir($prodArray[0]['cat_name'],$prodArray[0]['cat_father_id'], $prodArray[0]['cat_id'],$link=TRUE)); but I have no idea what I would change in here, if anything at all. A similar line appears in includes/content/viewCat.inc.php: $view_cat->assign("CURRENT_DIR",getCatDir($currentCat[0]['cat_name'],$currentCat[0]['cat_father_id'], $currentCat[0]['cat_id'], $link=TRUE)); I'm still a novice when it comes to php. Any suggestions? Thank you, Rhyan ;) Quote Link to comment Share on other sites More sharing options...
Guest Discord Posted April 5, 2007 Share Posted April 5, 2007 I would also like to know the answer to this question. Has anyone got any ideas? Quote Link to comment Share on other sites More sharing options...
markscarts Posted April 5, 2007 Share Posted April 5, 2007 You can find a free mod for this by typing into google: Category description and subcategory as a link Quote Link to comment Share on other sites More sharing options...
Guest Discord Posted April 6, 2007 Share Posted April 6, 2007 Thanks In case anyone else is looking for this here is a link: ** LINK REMOVED ** Quote Link to comment Share on other sites More sharing options...
markscarts Posted April 6, 2007 Share Posted April 6, 2007 Links to third-party sites like that are against forum rules, please remove it. What, do you think no one else is able to use google? LOL ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.