Jump to content

Diving The Website Into Files


Jon

Recommended Posts

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 :)

Edited by b767jonathan
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...