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

adding a new txt area to home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-30-2014, 12:59 PM
 
DBK Web Builder DBK Web Builder is offline
 

Advanced Member
  
Join Date: Apr 2014
Location: NJ
Posts: 67
 

Question adding a new txt area to home page

Hi

I know how to change the welcome message - and even move it - to under the slider ...

But now I have the header->slider-> welcome message -> top level categories

and now I want to put another message underneath all this

ONLY on the home page

this is not part of the footer - this would still be part of the center content area.

I can edit content.tpl or welcome.tpl ... I see {$lng.txt_welcome}<br />

what I really want to do is create a new lng.txt_welcome2 entry that I can add after all the other stuff in the welcome.tpl file.

I'm sure this is either doable - or I can fake some other lng.txt variable into doing this - but there are 3000 of them ? eeks

if you can point me in the right direction.

thanks

DonnaNJ
__________________
4.6.2 and 4.6.3
http://www.DBKWebBuilder.com
Reply With Quote
  #2  
Old 05-01-2014, 12:52 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,060
 

Default Re: adding a new txt area to home page

Well you are most of the way there, just edit the welcome.tpl as you say, and add the new language variable code where ever you want it to appear so {$lng.txt_welcome2}

Then go to Languages in admin, choose your language, scroll down to Add new entry.
Select Topic: Text
Variable: txt_welcome2
Value: [your text]

You may need to go to Tools/Maintenance and Clear Templates for it to show.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 05-01-2014, 05:07 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: adding a new txt area to home page

Detect for homepage with...
Code:
{if $main eq "" && $cat eq "0"} ... {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 05-01-2014, 05:08 AM
 
DBK Web Builder DBK Web Builder is offline
 

Advanced Member
  
Join Date: Apr 2014
Location: NJ
Posts: 67
 

Default Re: adding a new txt area to home page

Quote:
Originally Posted by pauldodman
Well you are most of the way there, just edit the welcome.tpl as you say, and add the new language variable code where ever you want it to appear so {$lng.txt_welcome2}

Then go to Languages in admin, choose your language, scroll down to Add new entry.
Select Topic: Text
Variable: txt_welcome2
Value: [your text]

You may need to go to Tools/Maintenance and Clear Templates for it to show.

Thanks !

I found knew how to add it to welcome.tpl - but didn't know how to add a new one- I didn't see that ALL the way down after all the entries ! LOL DUH - now I know to look real close !

thanks
__________________
4.6.2 and 4.6.3
http://www.DBKWebBuilder.com
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 09:26 AM.

   

 
X-Cart forums © 2001-2020