10/02/04 11:04am
auspexian
Anonymous
Hi, Look for your help again :-)
On project.sf.net/manual/index.html is our online
manual for the project.
I can put this into a static page, and Geeklog can display it OK.
My problem is there are over hundred of sites that already linked to http://project.sf.net/manual/index.html
hardcoded.
Is there anyway I can put in the index.html to make it redirect to geeklog static page. Or somehow create a wrapper for HTML like postnuke?
TKs
John
10/02/04 11:28am
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
If you can configure the server to interpret PHP in HTML files, then you could add the calls for site header / footer in your HTML file.
Or use a .htaccess to do a redirect from the .html to your static page.
There's also the external pages plugin, although I'm not sure it would help here (never used it myself).
bye, Dirk
10/02/04 01:11pm
Auspexian
Anonymous
THanks Dirk, always.
Option 1 is what I am looking for.
In Postnuke, I used this, is there a template for Geeklog?
Tks
John
// includes the mainfile functions and the header junk
if (!isset($mainfile)) { include("mainfile.php"); }
include("header.php");
?>
// add here your html code //
include("footer.php");
?>
10/02/04 01:32pm
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by Auspexian: is there a template for Geeklog?
Text Formatted Code
<?php
require_once ('lib-common.php');
echo COM_siteHeader ('menu');
echo COM_startBlock ('Block title here');
// your stuff here
echo COM_endBlock ();
echo COM_siteFooter ();
?>
Variations:
you can leave out the COM_startBlock / COM_endBlock if you don't want to wrap your content in a block
use
COM_siteFooter (true);
of you want the right blocks to be displayed
bye, Dirk