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

Is this possible?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-14-2003, 04:44 PM
 
poboy poboy is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 59
 

Default Is this possible?

I have a main catagory navigation list, then sub catagories. My customer wants to be able to click the name of the sub catagory and be taken to an external link in a new window. Its really just a link. I guess the question is, how do I make the name of the subcatagory a clickable link?
Reply With Quote
  #2  
Old 05-15-2003, 01:57 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Does it have to be a subcategory ? If not just add a link to the categories menu to go where you like.

or

How about add a bit of text including a link to the description part of the category so that it shows up when you click the category
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-16-2003, 04:32 AM
 
poboy poboy is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 59
 

Default He wanted it to be a sub..

The customer wanted it to be a subcatagory, but I talked him out of it completely and were just gonna make a new page with a tab to link to it.
Reply With Quote
  #4  
Old 05-17-2003, 12:03 AM
 
Alan Alan is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 83
 

Default

Hello poboy,

If you would still like to create a link for your client, then in your subcategories.tpl locate your <a href> links to your home.php section.

Please put them BEFORE your {section} code:

{if $location.1 ne ""}
{assign var="new_window" value="`target="_blank" `"}
{/if}

Please note the backticks within value.

In your <a href> link do:
<a {$new_window}href="home.php?cat={$cat}">

*sorry I might have not gotten the syntax correct, it's from memory.*

Not the most elegant method, but I think it'll work.
__________________
Best Regards!
Alan
Search is my friend
Reply With Quote
  #5  
Old 05-17-2003, 06:46 AM
 
poboy poboy is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 59
 

Default Thank you

Thanks for the help, I'll try it out.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:00 AM.

   

 
X-Cart forums © 2001-2020