Another snippet you can see as the admin user editing this page - it shows allpages found for this domain name.
Snippets are hard coded into cms3.pm They match alphanumeric, -, and . They are surrounded by two tildes ~~ in front and behind.
The handler replaces them with the output of their subroutine, which has access to the global variables set by the loading of the page, like $dbh, $dom, and $url. A lot of caution has to be taken when adding new snippets.
First you have to be logged in as the admin user. Additional users have not been tested or implemented
Next, to edit page /y, go to http://brb.soon.it/y and add ?edit to the url in the location bar.
It would look like this: http://brb.soon.it/y?edit
Edit the html/css etc in the form, click submit.
I will be adding a facility or three for non-admin users to put markdown in various places (status, notes, etc)
Basically the same as editing an existing page, just pick the url you want and add ?edit to the end.
To deactivate a page, enter http://brb.soon.it/url?delete, then enter your delete password
This will set it to inactive. To remove inactive pages do this:
psql cms3 cms3 DELETE from pages WHERE not active;
Go to http://brb.soon.it/api/login
Go to http://brb.soon.it/api/logout