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

news.tpl help needed

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-26-2003, 12:20 PM
 
miker miker is offline
 

Newbie
  
Join Date: Oct 2003
Posts: 1
 

Default news.tpl help needed

I have added the following code into my home.tpl in hopes of makeins news only show up on the main page, and not sub pages...

{if $location eq "" }{include file="news.tpl"}{/if}

Well, this worked like 90% of the time, every page (except for the front page) the news is gone, except for the shopping cart, it comes back. Any ideas?
Reply With Quote
  #2  
Old 10-28-2003, 10:08 PM
 
funkydunk funkydunk is offline
 

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

Default

Code:
{if $main eq "catalog" and $cat eq "" }{include file="news.tpl"}{/if}

home_main.tpl is a good pointer for this kind of thing

hth
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 10-28-2003, 10:37 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

It would be sooo good if just make news tpl catagorywise.

Do ya think this will work

if catagory -----
include "news1.tpl


and just go up.

But what should I enter where it says catagory " " , Catagory name or Number?

Thanks.
Reply With Quote
  #4  
Old 10-28-2003, 10:51 PM
 
funkydunk funkydunk is offline
 

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

Default

{if $cat eq "123"}

{/if}
__________________
ex x-cart guru
Reply With Quote
  #5  
Old 10-29-2003, 12:11 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

Great. done. Thanks.
I will add up some more in home_main.tpl

Thanks.
Reply With Quote
  #6  
Old 10-29-2003, 12:40 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

forgot, I have to xcart folders in http and https. I use ssl to accept payments only. Do I really need to make changes in xcart folder which is in https for whatever templates I added in xcart folder which is in http.
Reply With Quote
  #7  
Old 10-29-2003, 01:31 AM
 
funkydunk funkydunk is offline
 

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

Default

you have that posted in another thread - will stick to the topic.
__________________
ex x-cart guru
Reply With Quote
  #8  
Old 10-29-2003, 02:12 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

ok
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 12:39 PM.

   

 
X-Cart forums © 2001-2020