Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Custodian CMS
1.
2. What is Custodian CMS
Custodian CMS is a super light weight (16 Files, 140K), content management system (CMS), licenced under GNU
LGPL by ModusInternet.com and hosted by GitHub. Designed to help developers solve all the issues related to
building and maintaining multilingual, even bidirectional (BIDI), websites.
Why Build Custodian CMS
There is simply no other freely distributed CMS’s on the web today that automatically determines visitor
language preferences, assembles available content and images for the requested language, includes custom
programming and nested templates, faster, more securely or with a smaller footprint than Custodian CMS.
(That we know of...)
Modus Internet builds multilingual websites for the public and federal government, 15 years ago there were no
options available so we had to build one.
3. Default language of your website: en
Accept-Language header: zh-CN,zh;q=0.8,en;q=0.6
Database
Header
Template
Footer
Template
monkey 狗
Content typed
directly into the
HTML.
猪
ID en zh-cn
1 monkey none
2 dog 狗
3 chicken none
4 pig 猪
Output
PHP script
generated
content.
Pic
Temporary Array
5. The Tags
3 Primary Tags Used to Replace Content
1. CCMS_DB tags search the database for appropriate content.
○ {CCMS_DB:group,name} or {CCMS_DB:index_page,paragraph_1}
2. CCMS_LIB tags search for custom written function calls in the /ccmslib/ directory.
○ {CCMS_LIB:php_template;FUNC:name_of_function} or {CCMS_LIB:_default.php;FUNC:
ccms_cfgDomain}
3. CCMS_TPL tags inject HTML snippets like headers and footers which may be located anywhere in the
/ccms_tpl/ dir.
○ {CCMS_TPL:name_of_template_without_extention} or {CCMS_TPL:footer}
6. More Tags
2 Secondary Tags
1. CCMS_DB_PRELOAD placed once at the top of your html template to preload all CCMS_DB records into
memory that you might need for that page.
○ {CCMS_DB_PRELOAD:group1,group2} or {CCMS_DB_PRELOAD:index_page,footer_template,
header_template,twitter_stuff}
2. CCMS_DB_DIR tags search the database for appropriate content direction.
○ {CCMS_DB_DIR:group,name} or {CCMS_DB_DIR:index_page,paragraph_1}