Skip to content
alexxroche edited this page Jan 6, 2013 · 1 revision

The CMS system built into Notice works from a template called pages.html As you might have guessed, this is just an HTML file. Pages, (the CMS module) uses the ID tags in the mark-up to insert your data. You don't have to use a template, but a guide might help:

Guide to using your new site CMS

First off, log into Notice and go to https://notice.example.com/cgi-bin/index.cgi/Pages

Press the "add a Page" button.

At the top of the edit page, you will have to give it a name, (try "test" without the quotes). Then there is an editor that you can use to write the page. Don't worry if it does not look quite how you would like - just add some text and make some of it larger than the rest. find the "Save" button and press it. This saves the page into the database - N.B. as long as you don't press the "Publish" button the rest of the world can NOT see this page - if you are not in the Editor group you won't have the Publish button at all.

Now go back to the list (back button in your browser or press the large red button at the top.)

The page that you just created should be in the list - click on it and you will get a preview of how it will look on the actual site.

Easy! You can create your first page in just a few seconds.

So the next question is how do we add a link to this new page in the side menu? If you go back to the list and press Edit you will find that there is a box at the bottom of the page called "Tags:" and this is where Notice::Pages CMS (the system that you are using) is really clever. If you add the word menu to that box and press "Save" this page will be added to the Menu!

How easy is that? (It really can't be easier than that.)

"Ah, but how do we set the order of the menu?"

If you change the tag from menu to menu,50 then it will be inserted after anything with a smaller order number and before anything with a larger one, (i.e. on another page the tag might be menu,10 - so that page would be above this one; and a third might be menu,999 and that would go after this one.)

"I need to change the copyright message"

Welcome to the concept of stub pages and includes. Any page can be included in all of the others - with this power the copyright message is actually its own page! The way that this is done is by creating the copyright page, (just as any other page) and then adding the tag copyright,inc - notice that rather than adding a number we added "inc" (meaning "include").

"I'm ready to go live - what do I do?"

Edit the page and press the "Publish" button.

"How do I add links/stubs to other parts of the page?"

Each area of the page had an ID, (you can find it Viewing the Preview source - Ctrl+u ). Any ID is a valid tag, just as you did with the copyright.

There are other functions as well, (such as each page can have its own template.)

"Why not just use $other_CMS ?"

Notice::Pages creates static flat-files. This means that once a page is ready to be viewed, and you publish it, then it can be cached by computers all over the Internet. This means far less work for your computer and hence your site will be much faster. The only possible down-side to this is that you may not have a record for each and every time someone views one of the pages from your website, (if it is cached by their local network and 1000 people view that page you may see that in your logs as zero people.)

"Why another CMS?"

Because all of the others either thrash a database or require that you learn a new micro, (and in some cases not so micro) language - here you just create the page in the, (WYSIWYG ckeditor) editor and press publish.

"But with static pages you will have page-rot!"

Possibly. Each page it timestamped and can be updated either dynamically or via a cron-job. As it stands this is a feature.