Jon
October 7, 2010, 2:36pm
1
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
Tom
October 7, 2010, 3:17pm
2
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.
Jon
October 7, 2010, 3:34pm
3
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
Jon
October 8, 2010, 5:20pm
4
If I Gave You This Then What bits would i need to remove from the HTML?
http://pastebin.com/MZPdA9jb
Thanks Again
Jon
Tom
October 8, 2010, 6:00pm
5
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>
Jon
October 8, 2010, 6:21pm
6
I Just Get:
(Attached)
Jon
[](<fileStore.core_Attachment>/monthly_10_2010/post-737-077005900%201286562034.jpg)
Tom
October 8, 2010, 10:06pm
7
Do you have a link to take a look at it? It’s difficult to tell you what it is from an image.
Jon
October 9, 2010, 6:42am
8
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