Version 11

    At the risk of being crushingly obvious, this page covers how to set up a basic site with menus and html.

     

    • All Nukes managed files are stored internally in whatever database you are using, so you will need to upload or edit new html files using the "Manage HTML" item in the Admin menu. (Of course, you can also link to files on other servers, say a locally running instance of Apache.)

    • Files are all relative to the nukes root; for example, lets say you want two pages in your site, a home page, and a "documents" page. 

      • You will want to create a new "documents.html"

      • And perhaps upload a document to link from that page, say "/documents/mydoc.pdf".

    • Menu structure (at least as of 1.1RC2) is not directly editable from within Nukes; you will need to edit them in the MBean definition.

      • Launch your web console by going to http://www.mysite.org/web-console (Don't forget to protect the console!)

      • Navigate to: System:JMX MBeans:nukes.blocks:name=menu

      • Add items to your menu by changing:

               
            <menu>
                <item title="Home" url="index.html" description="Back to the home page."></item>
            </menu>

    to:

            
            <menu>
                <item title="Home" url="index.html" description="Back to the home page."></item>
                <item title="Documents" url="documents.html" description="Back to the home page."></item>
            </menu>

     

     

     

      • Give the appropriate premissions for the new items by adding to:

            <security>
                ...
                <permission group="*" level="READ" pattern="menu:Home:"></permission>
                ...
            </security>

    like this:

            <security>
                ...
                <permission group="*" level="READ" pattern="menu:Home:"></permission>
                <permission group="*" level="READ" pattern="menu:Documents:"></permission>
                ...
            </security>