![]() |
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.
|
Re: Static pages
Yes, but also take a look at dialog.tpl
|
Re: Static pages
Yes, skin1/customer/main/pages.tpl prints static page content.
Can you post the style you have added? |
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; } |
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. |
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"> |
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? |
All times are GMT -8. The time now is 02:06 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.