AlbertLewis

Anonymous
How would i make a .php file that would include the header, fooder, and blocks, but leave the middle area open for me to do what ever i please with? I have seen staticpages, but they wont work because they only allow some HTML and also hae strange urls.

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Hmm, at the bottom of the static pages editor, it says "all HTML allowed" - which tags give you problems there? Anway, you could make your own pages wrapped into Geeklog like this: <?php require_once ('lib-common.php'); echo COM_siteHeader ('menu'); echo COM_startBlock ("Some title"Wink; // optional - will wrap your page in a block ?> <!-- your HTML stuff here --> <?php echo COM_endBlock(); // again, optional echo COM_siteFooter(); >? bye, Dirk

Anonymous

Anonymous
Alright, thanks alot. one more question. echo COM_siteHeader ('menu'); That is what puts the header file in right? if i make a header file called header2.thml how can i include it?

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073

That, I'm afraid, is not so easy ...

If you want to do that, you would need to clone the function COM_siteHeader() from lib-common.php.

bye, Dirk