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

edit home page off line

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-29-2008, 07:23 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: edit home page off line

Thanks for the advice JWAIT, i have now edited the template but i am unsure as to how to find the txt_welcome file with my FTPEditor, all that i can find is the welcome_tpl not the txt_welcome file.
I have found the txt_welcome file in languages in admin but this does not allow me to rename a copy of the original before i replace with the edited file,
is it possible to see this file in my FTPEditor if so how and how do i clear the template catche as per your quote below.

"One thing I usually do is rename the file I am replacing to filename.tpl-old and upload the new one using FTP. That way if you have a problem you can just rename the old one back like it was and the problem will be gone, once you clear the template cache."
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #12  
Old 11-29-2008, 07:51 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: edit home page off line

txt_welcome is a language variable. you can use the WYSIWG editor in x-cart to get some idea of what it will look like, or you can just paste what is there to a good text editor (I prefer PSPad (www.pspad.com) , add <html> and <body> tags, save it as a html page and look at it in a browser (or in PSPad, there is a view as html button).

Once you are satisfied just copy between the <body> tags and paste it into the x-cart txt_welcome languages box.

I don't really like FTPeditor because the changes you make are pretty much immediate, and if you screw up too badly it is sometimes very difficult to fix.

To clear the templates cache, there are 3 ways... enter www.yoursite.com/cleanup.php in your browser... in admin click summary, then tools, scroll down to "clear templates cache" and click "clear", or using FTP, delete all of the files in var/templates_c folder.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #13  
Old 11-29-2008, 08:01 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: edit home page off line

What is the purpose of the template cache for and i asume that when you clear the template cache no harm comes to the web site.
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #14  
Old 11-29-2008, 08:19 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: edit home page off line

The templates cache stores the compiled templates, making your site run a little faster. If/when you make changes, the templates need to be recompiled in order to see the changes. This happens automatically the first time you visit a page. Over time, every page on your site will be compiled and put in the templates cache. It only compiles the page as it is visited, and only by the first person that visits that page. It is pretty unnoticeable, taking a second or two longer to load that particular page.

You may also need to clear your web browser's cache also. Most times this happens when you close the browser and restart it.

These are the primary reasons people will pose a question like "I made changes but don't see them, why?"
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #15  
Old 11-29-2008, 08:38 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: edit home page off line

Thanks i take it then that when you replace with a new updated template the old one will be removed when you vist the new page for the first time or does this happen when you clear the template cache.
I have uploaded my new txt.welcome file only to see that it has pushed the bottom template right over to the far right hand side, any suggestions as to why.
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #16  
Old 11-29-2008, 09:27 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: edit home page off line

Sometimes the changes to the template are immediately seen, sometimes not. One thing for certain is once the templates cache is cleared, all changes to all templates will be seen.

Your txt_welcome language variable should not have anything to do with the bottom.tpl being "pushed". Can you post what you have for txt_welcome?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #17  
Old 11-29-2008, 09:50 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: edit home page off line

Have sent a copy of txt_welcome via private message, what i did notice was that when i viewed the txt_welcome in webmaster mode with the built in wysiwyg was that it had put all of the images in one column to the left, the paragraph text was of a larger font size that what i had originally done, it looks like the wysiwyg has re-coded the table layout.
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #18  
Old 11-29-2008, 10:08 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: edit home page off line

I didn't get the entire thing. I think there is a limit to what you can post without making it an attachment. If you click "Go Advanced" in replying to this thread you should have the ability to attach a file to your post.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #19  
Old 11-29-2008, 10:22 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: edit home page off line

Not sure if this has worked but here goes
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #20  
Old 11-29-2008, 11:39 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: edit home page off line

OK, one thing I can see right off the bat is you didn't close your table. Other than that it looks like it might work.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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 06:10 AM.

   

 
X-Cart forums © 2001-2020