metalhead41 Posted March 30, 2008 Share Posted March 30, 2008 The website I'm currently working on has a default style throughout the website using includes for the header, footer and menu and a date/xml ticker tape. Several pages will not be based in the root folder but further down in the directory listing e.g: root>community>community.php To get this page to display correctly I have to create a 2nd footer, header, menu etc... telling it, it's back another level. There are quite a few links etc.. that need to be changed, added all the time so I need to go through 6 pages now to apply this to the whole site. Is there a way a I can use a common page or something similar and call what i need from a database? Link to comment https://forums.phpfreaks.com/topic/98633-is-there-an-easier-way-to-do-this/ Share on other sites More sharing options...
dtyson2000 Posted March 30, 2008 Share Posted March 30, 2008 If I'm reading you correctly, couldn't you just use the full path (e.g. include("http://etc.")) in your includes on all pages so you would only need to change one file to cover the entire site? Link to comment https://forums.phpfreaks.com/topic/98633-is-there-an-easier-way-to-do-this/#findComment-504744 Share on other sites More sharing options...
trq Posted March 30, 2008 Share Posted March 30, 2008 Use absolute paths instead of relative. Link to comment https://forums.phpfreaks.com/topic/98633-is-there-an-easier-way-to-do-this/#findComment-504747 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.