Are relocatable header and footers possible?
Posted: Fri Aug 17, 2007 1:13 pm
/*************************************
Title:gbook
Version:1.5
Short description: allow header and footer to be relocatable
*************************************/
Presently, I am changing my site to use dynamic page generation, and use an 'include' to add the header and footer. Unfortunately, I must keep a second copy of these two files in the gbook directory as gbook expects these files to be found there.
Would it be possible to change gbook so that the location of these files could each be entered into the 'settings.php' file? It could be shipped with the settings prefilled with the default locations in the gbook directory, but would allow a user, who is more familiar with relative addressing to change it to a different location. Then any changes to the sites header and footer would reflect over all the pages, even gbook.
The alternative requires me to rewrite printDownHTML() and add an additional 13 lines of code, throwing the line numbers out of sync with possible future fixes.
Gil
Title:gbook
Version:1.5
Short description: allow header and footer to be relocatable
*************************************/
Presently, I am changing my site to use dynamic page generation, and use an 'include' to add the header and footer. Unfortunately, I must keep a second copy of these two files in the gbook directory as gbook expects these files to be found there.
Would it be possible to change gbook so that the location of these files could each be entered into the 'settings.php' file? It could be shipped with the settings prefilled with the default locations in the gbook directory, but would allow a user, who is more familiar with relative addressing to change it to a different location. Then any changes to the sites header and footer would reflect over all the pages, even gbook.
The alternative requires me to rewrite printDownHTML() and add an additional 13 lines of code, throwing the line numbers out of sync with possible future fixes.
Gil