X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   adding a new txt area to home page (https://forum.x-cart.com/showthread.php?t=69095)

DBK Web Builder 04-30-2014 12:59 PM

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

pauldodman 05-01-2014 12:52 AM

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.

PhilJ 05-01-2014 05:07 AM

Re: adding a new txt area to home page
 
Detect for homepage with...
Code:

{if $main eq "" && $cat eq "0"} ... {/if}

DBK Web Builder 05-01-2014 05:08 AM

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


All times are GMT -8. The time now is 12:18 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.