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

Edit templates from admin side

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-02-2006, 10:48 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Edit templates from admin side

I uploaded my cart onto another server, and I am trying to "edit templates"; however everytime I save my changes are refresh the webpage I see no change to the file that I was editing? What do I do to fix that?

I do have chmod 777 to the skin1 folder so I dont understand what is wronge.
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 08-02-2006, 12:23 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

The templates themselves need to be writable. Did you get a 'file saved' message at the top of the editing screen when you saved it?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-02-2006, 12:54 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I change the chmod to 777 for the entire skin1 directory main folder, files and subfolders and it works.

thank you
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #4  
Old 08-02-2006, 12:55 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just remember to change it back when you are done or the hackers will have a field day with your site.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-02-2006, 01:43 PM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default

You may want to research how your webserver works as well. For example on some servers the owner of all the files is the same as the user that controls apache. So basically any commands run by a web interface such as editing these template files will only need writable permissions for that same user, not globally. Which means 777 might not be necessary.

I know that on our servers setting it to a chmod of 744 for the files or a 755 for the directory would be adequate since the first number sets permissions for the user, the second for the group, and the third for global. This way general population would not have access to those files. Then you wouldn't have to worry about changing things back and forth.

P.S. If you ever have the caching of files turned on, you may notice that changes take awhile to show up, as the cached template has to expire before the new one is loaded. But that only affects the customers view and not the view of the file itself from the edit console.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.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 07:22 AM.

   

 
X-Cart forums © 2001-2020