Site Root
__system__ directory
This is the system folder with all resources needed to run the system. Under normal circumstances there is no need to modify anything in this folder on a project level.
_setup directory
_pages directory
_directory defines the header and menu structure and links to all the page files. Sub folders defines the next level of the site structure; each folder must have its own _directory.xml
Generally speaking, it is not allowed to add files with the same page name but any other file extension, like .xsl, .xsd etc., as such files might have special meaning.
_manifest directory [optional]
_api directory [optional]
Other directories [optional]
__sessions directory [auto]
Temporary user data saved in folders named by session ID.
__accounts directory [auto]
Temporary user data saved in folders named by accountID.
| Parameter | Purpose | Datatype | Preserved |
|---|---|---|---|
| p=0 | Show server load time | 0 | |
| p=1 | Javascript debugging | 1 | browser |
| p=2 | Logging, save temp files, etc. | 2 | browser |
| compile=true | compile | boolean | browser |
| lang | language setting | ISO lang code | cookie |
| region | regional setting | ISO country code | cookie |
| decimal | decimal separator | comma | dot | cookie |
| thousand | thousand grouping separator | comma | dot | space | apostrophe | cookie |
| datetime | datetime format | US [MM-DD-YYYY 12:00 AM] | EU [DD-MM-YYYY 24:00:00] | W3C [YYYY-MM-DDT24:00:00] | cookie |
| timezone | timezone setting | ISO [-]HH[:mm] | cookie |
| calendar | calendar system | christian | buddhist [+543] | muslim [-579] | cookie |
| currency | currency setting | ISO currency code | cookie |
| editor | show editor menus | true | session |
| contenteditable | make text editable | true | browser |
| state | conditional showhide | {any} | |
| task | conditional showhide | {any} | browser |
| role | conditional showhide [lower roles only] | {any} | browser |
| profile | conditional showhide [lower profiles only] | {any} | browser |
| csp=false | Content Security Policy [role=9 only] | false | browser |
| fp=false | Feature Policy [role=9 only] | false | browser |
| action=sitemap | create/update sitemap.xml | string | browser |
| action=clear | clear all table parameters | string | browser |
| action=files | create xml file listing all site files | string | browser |
| action=sessions | Delete all sessions more than 24 hours old | string | browser |
| action=logs | Delete all log files more than 24 hours old | string | browser |
| mode=html&export=wp | export to WordPress | string | browser |
Basic Files
All projects will have at least 2 custom files:
- _directory.xml - shared header, footer, etc.
- {page}.xml - page definition
Most project will so have 2-3 files more:
- setup.xml - login system, etc.
- model.xml - relational database model
- {service}.xml - backend service
The _setup/setup.xml file
<?xml version="1.0" encoding="UTF-8"?>
−
<site>
<login system="db" retries="3"/>
</site>
[1 lines]
The _directory.xml file
_pages folder being the root directory of your web site. The _directory.xml file defines the shared header, footer, menus, etc. of each directory. Additional subdirectories addes as folders to the _pages root folder. Each subdirectory needs a _directory.xml file. You may add subdirectories to the subdirectories
endlesly.The root tag must be <bs:document>
There is a special attribute @dir to indicate if the _directory.xml of a sub folder should inherit from the _directory.xml files from parent levels. @dir="0" means no inheritage. Omitted @dir attribute means inherit up till root _directory.xml. Other numbers indicate how many levels upwards should be inherited.
There is a special tag <bs:import> to indicate where the {page}.xml files are to be imported.
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:document dir="0" xmlns:bs="http://www.bootstrap-cms.org">
<bs:head/>
−
<bs:body>
Here is your content...
<bs:import/>
</bs:body>
[1 lines]
</bs:document>
[3 lines]
Here is your content...
The {page}.xml files
{page}.xml files. One file one page.The root tag must be <bs:page>. It has no visual impact.
There is a special tag <bs:include @scr="{file}.xml"> for including other files as resources.
<?xml version="1.0" encoding="UTF-8"?>
<bs:page xmlns:bs="http://www.bootstrap-cms.org"> Here is your content... </bs:page>
Here is your content...
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:page xmlns:bs="http://www.bootstrap-cms.org">
−
<bs:head>
<bs:title>Home</bs:title>
Here is your title, keywords, custom css and scripts and other head information overwriting _directory.xml
</bs:head>
[1 lines]
<bs:body> Here is your content...
</bs:body>
</bs:page>
[3 lines]
Home Here is your title, keywords, custom css and scripts and other head information overwriting _directory.xml Here is your content...
The _setup/database/db/_uploads/model.xml file
The relational database model definition.
<?xml version="1.0" encoding="UTF-8"?>
−
<rd:database historyDefault="true" auditDefault="true" privilegeDefault="true" localsDefault="true" versioningDefault="true" rowlockDefault="true" locationDefault="true" surveyDefault="true" xmlns:rd="http://www.rapidweb.tools/db">
<rd:include type="system" href="builtin/lang/metadata.xml"/>
−
<rd:table name="ACCOUNT" history="true" versioning="false" priority="10">
<rd:column name="ACCOUNTNAME" type="@TEXT"/>
<rd:column name="ACCOUNTTYPE" datatype="INTEGER" length="1"/>
</rd:table>
[2 lines]
</rd:database>
[4 lines]
The _service/{service}.xml file(s)
<?xml version="1.0" encoding="UTF-8"?>
<transaction xmlns:bs="http://www.bootstrap-cms.org"> Transaction flow goes here </transaction>
Transaction flow goes here
Simple Install
- Download bsml.zip and setup.php
- Copy bsml.zip and setup.php to site root directory
- Type address to setup.php in your browser
- Follow the online instructions