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

Static pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-08-2009, 01:28 AM
 
swifty1 swifty1 is offline
 

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

Default Static pages

I have added a new style to skin1.css to control the borders on the static pages, however it is not changing the layout of the static pages. Is the skin1/customer/main/pages.tpl what controls the static pages.
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #2  
Old 06-08-2009, 04:26 AM
 
autobulbs autobulbs is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Southampton, UK
Posts: 68
 

Default Re: Static pages

Yes, but also take a look at dialog.tpl
__________________
Autobulbs Direct Ltd
X-Cart Version: 4.2.2
eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications
Reply With Quote

The following user thanks autobulbs for this useful post:
swifty1 (06-09-2009)
  #3  
Old 06-08-2009, 04:45 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Static pages

Yes, skin1/customer/main/pages.tpl prints static page content.
Can you post the style you have added?
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #4  
Old 06-08-2009, 08:57 AM
 
swifty1 swifty1 is offline
 

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

Default Re: Static pages

Hi Victor
Have i picked it up correctly in that pages.tpl is what is printed out if the customer makes a print out of the static pages content ?

The style i added is as follows


Static Page
*/
.Pagelayout {
{*WIDTH: 100%*}
TEXT ALIGN: justify;
VERTICAL ALIGN: Top;
PADDING-LEFT: 10px;
PADDING-RIGHT: 10px;
}
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #5  
Old 06-09-2009, 07:55 AM
 
swifty1 swifty1 is offline
 

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

Default Re: Static pages

Thanks autobulbs the dialog.tpl did the trick but this changes the padding to all pages on the site not just the embedded static pages, any thoughts on how i can change only the embedded static pages?
One more question is there an easy way on how in the future can i see which .tpl i may need to look at to change if i need to edit any page on the site as i did look at webmaster mode but the list of .tpl is large and to just go through them all becomes a mammoth task.
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote
  #6  
Old 06-09-2009, 09:50 AM
 
autobulbs autobulbs is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Southampton, UK
Posts: 68
 

Default Re: Static pages

With webmaster mode, you need to hover over the name of the various .tpl files in the popup window and it will be highlighted with a red border in the the main page. It is probably the best way of locating which file displays what.

In pages.tpl find where it says:

Code:
{include file="dialog.tpl" title=$page_data.title content=$smarty.capture.dialog extra='width="100%"'}

and change it to something like:

Code:
{include file="dialog.tpl" title=$page_data.title content=$smarty.capture.dialog extra='width="100%"' cellpadding="10"}

and in dialog.tpl find this:

Code:
<tr><td class="DialogBorder"><table cellspacing="1" class="DialogBox">

and change it to this:

Code:
<tr><td class="DialogBorder"><table cellspacing="1" cellpadding="{$cellpadding|default:"5"}" class="DialogBox">
__________________
Autobulbs Direct Ltd
X-Cart Version: 4.2.2
eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications
Reply With Quote
  #7  
Old 06-09-2009, 11:10 AM
 
swifty1 swifty1 is offline
 

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

Default Re: Static pages

When i hover over the various names of the .tpl files i don't have a red border in the main page only a black cursor and the the page jumps down a line, do i have to adjust a setting to get the red border?
Done the above does this only affect the embedded static pages?
__________________
4.1.11 gold
x-special offers
CDSEO Pro
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 02:17 PM.

   

 
X-Cart forums © 2001-2020