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

questions about adjusting website width.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-05-2005, 06:54 AM
 
minhta minhta is offline
 

Advanced Member
  
Join Date: Aug 2005
Location: Sydney, Australia
Posts: 35
 

Default questions about adjusting website width.

Hi All.

This is my first post Hopefully one day soon I'll be one of you people answer posts to help others but for now any help is much appreciated.

I've edited rectangle_top.tpl and changed the following code in the <table> tag:

width="{$width|default:"100%"}"

to width="800".

Firstly, the $width in the code above suggests there should be a variable for the width of the table. Is this correct? If it is, then wouldn't it be better to go and set that $width value rather than editing the code? If it is, then where is this $width variable please?

Or is it better to just set the width="800" like I've done?

Also, after change the width value to 800, the website is sized at 800 pixels but my admin page also go resized to 800 pixels. Is there a way to resize the website to 800 pixels but not the admin section?
__________________
PHP v4.3.11
MySQL v4.0.22
Apache v1.3.33(Unix)
Reply With Quote
  #2  
Old 09-05-2005, 07:41 AM
 
balinor balinor is offline
 

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

Default

Make a copy of rectangle_top.tpl....call it rectangle_top_admin.tpl. Open single/home.tpl and change the include from retangle_top.tpl to rectangle_top_admin.tpl. Now you can edit rectangle_top.tpl and it won't affect the admin side.

And yes, just change it to width=x if you want it to be a fixed width.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-06-2005, 11:46 PM
 
minhta minhta is offline
 

Advanced Member
  
Join Date: Aug 2005
Location: Sydney, Australia
Posts: 35
 

Default

Thanks balinor.

That works!
__________________
PHP v4.3.11
MySQL v4.0.22
Apache v1.3.33(Unix)
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 03:26 AM.

   

 
X-Cart forums © 2001-2020