Modules  :: 
Adding static content the easy way
 Top

  • Hi,
    I have read loads of posts regarding static content and HTML.
    it seems most people use modules to do this "content express" "post wrap" "HTML pages" just to name a few.

    the problem with this method for me is that lets say I wanted to add five HTML pages they would always be within one of the above module so even though the static content is different I would not be able to set different blocks layout etc to each page. as auto theme uses the module call to set the layout. (correct me if I am wrong)

    So is there any problem with placing a new folder within modules and a index.php file within that add the HTML content to the index.php

    I tried the above method and to my suprise it worked great
    http://www.thegardenspider.com/test+main.html
    It now means I can have a completly different block layout for each page
    as long as I set up each page as a module (hope this makes sence)

    Now I have been using PostNuke for a while now and I know things are not always as simple as that. my worry is why is nobody else doing this and having to use third party modules which can actually restrict multible layouts.

    Just my pennies worth icon_smile

    I plan on building half the site using this methd so please if there is a problem here let me know.

    cheers
  • Except that this is the "old style" of returning content, there is nothing wrong with your method. You can, however, have a look at my "Start" module which basically does the same but pnAPI-compliant.

    This is fone for adding ONE page. When you look at the modules you mentioned, they serve another purpose.

    htmlpages, ContentExpress etc. are there not only to display content, but to manage it. That means you can edit you content via the web, based on the PN user permissions.

    Static_Docs is to display static HTML pages, but it rewrites URLs as well. So if you place a link on page A to pageB.htm, it is rewritten so that the link displays page B using static_Docs again.

    PostWrap is more or less a module to integrate other content, mostly on other web servers or other apllications so you can't use the other methods.


    Jörg
  • Hi,
    Thank you for your reply.

    Using the old style what are the drawbacks of being non pnAPI-compliant?
    as I have not ventured down the road of understanding what pnAPI-compliant is yet (so much to do so little time :? )

    I have all the static content type modules and after playing with the CSS files got them all working fine. however I noticed that as all the pages produced are within the module so I can only set one theme to the pages within.

    What I want to do is set different blocks for different pages.
    for example if a member goes to the vegetables part of the diary only vegetable related blocks will show.
    if you take a look at http://www.thegardenspider.com/january+main.html
    I have removed the right blocks but they are still there at http://www.thegardenspider.com/test+main.html
    I cannot seem to do this with the above said modules but it is relativly easy using the "old style", Auto theme, and Dream Weaver and use ftp pro to shuffle and manage my files.

    Anyway thank you for your reply

    Martin
This list is based on the users active over the last 60 minutes.