# Diving The Website Into Files

**URL:** <https://forum.phpvms.net/t/diving-the-website-into-files/3477>\
**Category:** Skinning - Legacy phpVMS (v2/v5)\
**Created:** [October 7, 2010, 2:36pm UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477 "2010-10-07T14:36:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@Jon](https://forum.phpvms.net/u/Jon)\
**Post date:** [October 7, 2010, 2:36pm UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477/1 "2010-10-07T14:36:00Z")

</div>

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](http://www.leavirtual.com)

EDIT I know the title says Diving

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [October 7, 2010, 3:17pm UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477/2 "2010-10-07T15:17:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jon](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@Jon](https://forum.phpvms.net/u/Jon)\
**Post date:** [October 7, 2010, 3:34pm UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477/3 "2010-10-07T15:34:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jon](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@Jon](https://forum.phpvms.net/u/Jon)\
**Post date:** [October 8, 2010, 5:20pm UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477/4 "2010-10-08T17:20:18Z")

</div>

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

[http://pastebin.com/MZPdA9jb](http://pastebin.com/MZPdA9jb)

Thanks Again

Jon

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [October 8, 2010, 6:00pm UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477/5 "2010-10-08T18:00:08Z")

</div>

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>

```

---

<div class="post-metadata">

**Author:** ![Jon](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@Jon](https://forum.phpvms.net/u/Jon)\
**Post date:** [October 8, 2010, 6:21pm UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477/6 "2010-10-08T18:21:20Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [October 8, 2010, 10:06pm UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477/7 "2010-10-08T22:06:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jon](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@Jon](https://forum.phpvms.net/u/Jon)\
**Post date:** [October 9, 2010, 6:42am UTC](https://forum.phpvms.net/t/diving-the-website-into-files/3477/8 "2010-10-09T06:42:52Z")

</div>

[http://websiteupgradges.leavirtual.com/index.php](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](http://www.staff.leavirtual.com/layout.tpl)

Jon
