theniteowl
Programmer
Hi All,
I am re-vamping the local middle school web site and would like to have all links from the site piped through my template page so as to enforce a common template to the site but still allow the teachers to create their own pages that will get loaded inside that template.
I am told that using HTAccess should allow for this.
What I need is to have all links in pages under this set of folders to automatically load via my template unless the link is for a site not local to the site in which case I would want it to load into a new browser window.
Can anyone give me a basic rundown on how to set this up? I have read around a bit but am still putting puzzle pieces together from different sources.
A basic example of how to setup to force page xyz.htm to get loaded through the main index.php page should be all I need to figure things out. And if there is any server-side information available such as the folder location of the page the link was called from or other such useful bits of info that would be enormously helpful.
Essentially I have a main page that loads primary and secondary navigation controls based on current page selection and then loads the appropriate html page within the main content window. It works well as is except that if the teachers create an HTML page with links they currently would have to specially forumalate their links to pass values to my script page and I do not want to have to rely on them having to remember how/when to do that.
Thanks.
[blue]It's hard to think outside the box when I'm trapped in a cubicle.[/blue]
In an increasingly self-focused society it is important to recognize the unselfish actions of others so they will feel encouraged to continue such actions. Please give acknowledgement to those who aid you whether it is waving to the person who let you out
I am re-vamping the local middle school web site and would like to have all links from the site piped through my template page so as to enforce a common template to the site but still allow the teachers to create their own pages that will get loaded inside that template.
I am told that using HTAccess should allow for this.
What I need is to have all links in pages under this set of folders to automatically load via my template unless the link is for a site not local to the site in which case I would want it to load into a new browser window.
Can anyone give me a basic rundown on how to set this up? I have read around a bit but am still putting puzzle pieces together from different sources.
A basic example of how to setup to force page xyz.htm to get loaded through the main index.php page should be all I need to figure things out. And if there is any server-side information available such as the folder location of the page the link was called from or other such useful bits of info that would be enormously helpful.
Essentially I have a main page that loads primary and secondary navigation controls based on current page selection and then loads the appropriate html page within the main content window. It works well as is except that if the teachers create an HTML page with links they currently would have to specially forumalate their links to pass values to my script page and I do not want to have to rely on them having to remember how/when to do that.
Thanks.
[blue]It's hard to think outside the box when I'm trapped in a cubicle.[/blue]
In an increasingly self-focused society it is important to recognize the unselfish actions of others so they will feel encouraged to continue such actions. Please give acknowledgement to those who aid you whether it is waving to the person who let you out