Ok maybe I'm getting this
there are two types of include, file and virtual <self-promo> SSI Includes </self-promo>
My site (and many others I build) is/are comprised almost entirely of sub-folders. This is purely for ease of control and updating.
Each folder will comprise of;
A default document (index.xxx)
A Content file (content.xxx)
A Meta content file (meta.asp)
A specific style sheet (styles.css)
the global includes are then in an includes folder off the root
so the index.xxx file will look something like;
PHP Code:
<!--#include virtual="/includes/dtd.asp" -->
<!--#include virtual="/includes/open_head.asp" -->
<!--#include file="meta.asp" -->
<!--#include virtual="/includes/css/styles.asp" -->
<link rel="stylesheet" type="text/css" src="styles.css">
<!--#include virtual="/includes/close_head.asp" -->
<!--#include virtual="/includes/open_body.asp" -->
<!--#include virtual="/includes/header.asp" -->
<!--#include virtual="/includes/navigation.asp" -->
<!--#include file="content.asp" -->
<!--#include virtual="/includes/footer.asp" -->
Not the actual file names BTW
Many of theses files are scripted so can determine where they are in the structure and write navigation links and breadcrumbs without me needing to edit anything.
So it's create a folder name it then copy the default structure into it then the only page I need to change is /folder/content.asp. It can also be done dynamically where the content.asp has a script that looks for the content in a database based on the folder name.
Is that the kind of thing you are looking for?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
Last edited by chrishirst : 05-16-2006 at 07:04 AM.
|