Static PostNuke


You can completely break out of the dynamic PostNuke page generation, but still have access to the PostNuke infrastructure. Your XHTML can be themed, optionally include header and footer content, and also provide access to PostNuke function calls. The only requirement is that your XHTML be within a PHP page in the root PostNuke folder on your web server.

Place this code before your XHTML:

 <?php include 'includes/pnAPI.php'; pnInit(); include 'includes/legacy.php'; define("LOADED_AS_MODULE","1"); if (!isset($mainfile)) { include("mainfile.php"); } include("header.php"); ?> 

And add this code at the end of the file:

 <?php include("footer.php"); ?> 

Remove the include calls to the header and footer to get access to the PostNuke system without the theme wrapper. You can create any number of pages using this method, but all of them will, of course, be static pages with content not stored in the PostNuke database.



    PostNuke Content Management
    PostNuke Content Management
    ISBN: 0672326868
    EAN: 2147483647
    Year: 2003
    Pages: 207
    Authors: Kevin Hatch

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net