Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki WOX xoops XoopsEngine ZendFramework

New Users

Registering user

# 133946

HamptonUdolf

Welcome to XOOPS!
[Main Page]

DevWiki XoopsHTMLPages

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: DevWiki

DevWiki Index

Contents

How to show HTML pages inside Xoops

This page describes how to include static HTML pages in your Xoops site.

Most people think you can easily add a link to

the Mainmenu block and the linked site will automatically show up in the center area of Xoops. This is wrong! You have to tell Xoops, that

it has to build the Xoops layout around that HTML site!

Basically there are two ways to include/wrap HTML pages into your Xoops

  • Including 3 basic inlcude statements into your HTML file
  • Use a content module to wrap your HTML pages

1. Basic include statements

You have to edit your HTML file and add the

following lines above and below your HTML content. The relative path to

mainfile.php depends on the folder you saved your HTML file.

    <?php
    include('path/to/mainfile.php');
    include(XOOPS_ROOT_PATH.'/header.php');
    ?>
    The content of your original html file goes here!!
    <?php
    include(XOOPS_ROOT_PATH.'/footer.php');
    ?>

After you have done that, save your file as filename.php and no longer filename.html! The extension is important! Now when you call filename.php it will be perfectly included into your Xoops theme!

2. Using a module

A more common way is to use a content module to

include your HTML pages into Xoops. There are a few modules out there which can handle HTML files. You can download the following modules at

xoops.org in the Modules/Themes section.

  • TinyContent
  • CjayContent
  • FreeContent
  • WF-Sections

For more information on these modules please read the included README files and search the xoops.org Forum!

Michael van Dam

Retrieved from "http://xoops.org/modules/mediawiki/index.php/DevWiki_XoopsHTMLPages"

This page has been accessed 4,073 times. This page was last modified 01:11, 10 June 2009. Content is available under XOOPS Web Application System.