Zymantics <XML/>

<rapidWeb/>

Site Root

{site root}
Mandatory in all projects
__system__ (the system)
__accounts (site account temp data)
__sessions (site user temp data)
_setup (site setup files)
_pages (site pages) [deprecated]
fav.icon
.htaccess

Mandatory in some projects
_manifest (web manifest files)
_api (api setup files)

Optional in all projects
{css}
{js}
{fonts}
{images}
{audios}
{videos}
{documents}
sitemap.xml
robots.txt

__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.

backend (server side files)
database (database files)
frontend (frontend files)
PHP (PHP files)
index.php (base php file)

_setup directory

setup.xml * (basic site configurations, passwords, etc.)
setup.json [auto]
users.xml (XML user credentials)
database (database setup files)
db
_uploads
model.xml
input [auto]
{db temp files}.xml [auto]
xml
json
cron (cron job setup files)
plugins (plugin setup files)
defaults (default resources)
Overwrites system default but is overwritten by directory files
Error pages
_403.xml (access denied)
_404.xml (page not found)
_browser.xml (browser too old)
_error.xml (error)
_session.xml (session expired)
_nologin.xml (lost login)
_xss.xml (security error)
Lang and region
settings.xml
messages.xml (system messages)
Global JS and CSS
_head.xml (standard js and css)
emails (system emails)
activate.xml (activate account)
changepassword.xml (change password notification)
forgot.xml (forgot password)
inactive.xml (account has been deactivated)
login.xml (login notification)
signup.xml (signup confirmation)
trials.xml (too many password trials notification)

_pages directory

System Auto:
__temp (compilation files)
__colors (color compilation files)
__language (language compilation files)
__dataIO (database compilation files)
__jscss (js and css compilation files)

The following folder names are reserved:
{_components} (include files)
_preprocess (preprocess XSL files)
_postprocess (postprocess XSL files)
_data (optional postprocess files)
_service (backend service setup files)

Content files:
_directory.xml (directory setup file)
{page}.xml (page definition files)
{subfolders} (site sub folders)

_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.

{page}.xsl (preprocess XML stylesheet for named page)
_directory.xsl (preprocess XML stylesheet for directory)
.htaccess (standard)

_manifest directory [optional]

app.json (auto)
icon-xxx.png

_api directory [optional]

api.php

Other directories [optional]

{css}
{js}
{fonts}
{images}
{audios}
{videos}
{documents}

__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.

ParameterPurposeDatatypePreserved
p=0Show server load time0
p=1Javascript debugging1browser
p=2Logging, save temp files, etc.2browser
compile=truecompilebooleanbrowser
langlanguage settingISO lang codecookie
regionregional settingISO country codecookie
decimaldecimal separatorcomma | dotcookie
thousandthousand grouping separatorcomma | dot | space | apostrophecookie
datetimedatetime formatUS [MM-DD-YYYY 12:00 AM] | EU [DD-MM-YYYY 24:00:00] | W3C [YYYY-MM-DDT24:00:00]cookie
timezonetimezone settingISO [-]HH[:mm]cookie
calendarcalendar systemchristian | buddhist [+543] | muslim [-579]cookie
currencycurrency settingISO currency codecookie
editorshow editor menustruesession
contenteditablemake text editabletruebrowser
stateconditional showhide{any}
taskconditional showhide{any}browser
roleconditional showhide [lower roles only]{any}browser
profileconditional showhide [lower profiles only]{any}browser
csp=falseContent Security Policy [role=9 only]falsebrowser
fp=falseFeature Policy [role=9 only] falsebrowser
action=sitemapcreate/update sitemap.xmlstringbrowser
action=clearclear all table parameters stringbrowser
action=filescreate xml file listing all site filesstringbrowser
action=sessionsDelete all sessions more than 24 hours oldstringbrowser
action=logsDelete all log files more than 24 hours oldstringbrowser
mode=html&export=wpexport to WordPressstringbrowser

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

The setup.xml file defines the basic settings for your web site.
<?xml version="1.0" encoding="UTF-8"?>
−
<site>
<login system="db" retries="3"/>
</site>
[1 lines]

The _directory.xml file

Your web site starts at the root of the _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]

The {page}.xml files

Your web site consists of pages defined and named by the {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>
<?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]

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>

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

WordPress Install





Oops

Your browser is not supported

A modern browser with Javascript ES6 is required

Any major browser from 2015 onwards will be suitable