View Single Post
  #8  
Old 11-19-2008, 04:17 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

If "the file" is one of x-cart's templates it is not html. The templates usually have smarty tags throughout them so they can't be displayed as html. If you are trying to edit the "$lng.txt_welcome" language variable,then you can do as I suggested earlier...
"For $lng.txt_welcome, in admin click on "languages" then chose your language from the drop down box at the top of the page. Next enter txt_welcome as the filter. You should see $lng.txt_welcome as one of your results. Copy what is in the box to your favorite text editor. Add <html>and <body> to the top, and </body>and </html> to the bottom and save as a html file. You can then open the file in your web browser to see what that portion of the home page will look like. When you are done editing, you can copy your file between the "body"s and paste it into the $lng.txt_welcome area in the admin "languages" section."

If you are going to be doing a lot of editing, and don't want to disturb the live site, then maybe you should create a clone of your live site in a sub-folder. Remember to clone your database also, and change the new config.php to point to the proper locations. Also, block the sub-folder from search engines by disallowing it in robots.txt.
__________________
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