Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Page Titles - Show subcategory only

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-17-2003, 03:27 PM
 
junai3 junai3 is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 9
 

Default Page Titles - Show subcategory only

Hi all -

Having a little trouble here. I'm trying to display titles on each page. Currently, I am using {$current_category.category}. This works fine on top level categories, but when your in a subcategory, it displays:

category name/subcategory name

I would like to be able to just display the subcategory:

subcategory name

Does anyone have any ideas? Also, is there a way to be in a subcategory and display the top level category only. Say you were in a subcategory it would display:

category name

Thanks,
Justin
Reply With Quote
  #2  
Old 09-18-2003, 11:54 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

This is available as: {$current_category.category_name} i believe
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 09-19-2003, 11:41 AM
 
junai3 junai3 is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 9
 

Default

Thanks, works like a charm!
Reply With Quote
  #4  
Old 09-19-2003, 11:00 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

__________________
ex x-cart guru
Reply With Quote
  #5  
Old 01-05-2004, 03:08 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

I need help with this.

I would like to display the subcategory OR Root category that a product resides. The display would come in the products.tpl template.

Trick is I want to strip the slashes and either the parent or child categories from the display.

So if I had a product in Potato/Chips/Salt & Vinegar, it would only display Potato or alternately Salt & Vinegar.

Anyone?
Reply With Quote
  #6  
Old 01-05-2004, 11:06 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

answered this in the other post
__________________
ex x-cart guru
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:37 PM.

   

 
X-Cart forums © 2001-2020