Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 06:30 pm EDT

Geeklog Forums

Wrapping a HTML file into GeekLog


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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

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");
?>
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

All times are EDT. The time is now 06:30 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content