Diving The Website Into Files

Hi All,

I have just finshed work on a CSS website, but just need some conformation a sort of ‘How to’ divide the site up into and layout the coding for the header.tpl etc files.

I’ve got somebody doing it for me this time but would really like to know ‘How tt’ do it myself.

Thanks for your time

Jon

www.leavirtual.com

EDIT I know the title says Diving

You’ll want to use layout.tpl rather than header.tpl etc. If you aren’t already, make sure you’re using the most up to date version.

Most of your HTML goes into layout.tpl - there are a few bits of php you need to put in:

<title><?php echo $page_title; ?></title>

(for the title)

<? echo $page_htmlhead; ?>

(before </head>)

<? echo $page_htmlreq; ?>

(after <body>)

<? Template::Show('core_navigation.tpl'); ?>

(To show your navigation, the HTML for your links will go in core_navigation.tpl - there’s already some in there)

and finally:

<? echo $page_content; ?>

Put that wherever you want the page content to appear.

Ok, thanks for that, when my freind gets back to me I can see how it works. (few New Skins In The Making For PHPVMS Community )

Thanks Again

Jon

If I Gave You This Then What bits would i need to remove from the HTML?

http://pastebin.com/MZPdA9jb

Thanks Again

Jon

That would all need to go into layout.tpl with the additions as above, and where “NAVBAR HERE” is, you would put:

<? Template::Show('core_navigation.tpl'); ?>

and have all the code for your navigation in that file (there’s some example links already in there).

Unless you have a no attribution license, remember to include the link back to phpvms:

<a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a>

I Just Get:

(Attached)

Jon

[![post-737-077005900 1286562034_thumb.jpg](<fileStore.core_Attachment>/monthly_10_2010/post-737-077005900%201286562034_thumb.jpg)](<fileStore.core_Attachment>/monthly_10_2010/post-737-077005900%201286562034.jpg)

Do you have a link to take a look at it? It’s difficult to tell you what it is from an image.

http://websiteupgradges.leavirtual.com/index.php

There you go the Mystic Cloth Lgo IS Where the logo would go I was Follwing A Tutorial.

You can look at my layout.tpl HERE

Jon