Include a php file for the whole site

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Include a php file for the whole site

Post by RonnyK »

I do think that you are overcomplicating the way CMSMS works...

In a pagetemplate you call the logic you want for a page, see the default examples.
In there you call for a DIV#header, f.e. where {sitename}-{title} can be placed to return the sitename of global settings and the pagetitle of the current page..

Putting in {menu} will show the active pages in a menu.
In the content-area, you place {content} and this will place the content as set in the pages at that specific location.

A footer-div, which can call some GlobalContentBlocks f.e. places that text on all pages.

So no direct need for external pages to include in your current setting as far as I see..

Ronny
Post Reply

Return to “CMSMS Core”