Added support for user, user_roles, page, blog export and import.
Added basic support for comments, for now mainly viewing comments from database (no submission forms yet). Added first simple wikitext filter (render wikitext content as xhtml). Ensure response content type is text/html with utf-8 charset.
This commit is contained in:
2
examples/demo/.gitignore
vendored
2
examples/demo/.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
site/db/*
|
||||
site/files/*
|
||||
site/export/*
|
||||
site/import/*
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<library name="cms_auth_module" location="..\..\modules\auth\auth-safe.ecf" readonly="false"/>
|
||||
<library name="cms_basic_auth_module" location="..\..\modules\basic_auth\basic_auth-safe.ecf" readonly="false"/>
|
||||
<library name="cms_blog_module" location="..\..\modules\blog\cms_blog_module-safe.ecf" readonly="false"/>
|
||||
<library name="cms_comments_module" location="..\..\modules\comments\comments-safe.ecf" readonly="false"/>
|
||||
<library name="cms_contact_module" location="..\..\modules\contact\contact-safe.ecf" readonly="false"/>
|
||||
<library name="cms_custom_block_module" location="..\..\modules\custom_block\custom_block-safe.ecf" readonly="false"/>
|
||||
<library name="cms_demo_module" location="modules\demo\cms_demo_module-safe.ecf" readonly="false"/>
|
||||
@@ -20,6 +20,7 @@
|
||||
"taxonomy": { "location": "../../modules/taxonomy" },
|
||||
"files": { "location": "../../modules/files" },
|
||||
"custom_block": { "location": "../../modules/custom_block" },
|
||||
"wikitext": { "location": "../../modules/wikitext" }
|
||||
"wikitext": { "location": "../../modules/wikitext" },
|
||||
"comments": { "location": "../../modules/comments" }
|
||||
}
|
||||
}
|
||||
|
||||
18
examples/demo/site/modules/comments/files/css/comments.css
Normal file
18
examples/demo/site/modules/comments/files/css/comments.css
Normal file
@@ -0,0 +1,18 @@
|
||||
div.comments-box div.title {
|
||||
font-size: x-large;
|
||||
}
|
||||
div.comments-box ul.comments {
|
||||
border-top: solid 1px #eee;
|
||||
padding: 0 0 0 20px;
|
||||
border-left: solid 5px #eee;
|
||||
list-style-type: none;
|
||||
}
|
||||
div.comments-box ul.comments li.comment {
|
||||
border-bottom: solid 1px #eee;
|
||||
}
|
||||
div.comments-box ul.comments li.comment > span.author {
|
||||
font-weight: bold;
|
||||
}
|
||||
div.comments-box ul.comments li.comment > span.info {
|
||||
font-style: italic;
|
||||
}
|
||||
17
examples/demo/site/modules/comments/files/scss/comments.scss
Normal file
17
examples/demo/site/modules/comments/files/scss/comments.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
div.comments-box {
|
||||
div.title {
|
||||
font-size: x-large;
|
||||
}
|
||||
ul.comments {
|
||||
border-top: solid 1px #eee;
|
||||
padding: 0 0 0 20px;
|
||||
border-left: solid 5px #eee;
|
||||
list-style-type: none;
|
||||
li.comment {
|
||||
border-bottom: solid 1px #eee;
|
||||
&>span.author { font-weight: bold; }
|
||||
&>span.info { font-style: italic; }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
13
examples/demo/site/modules/comments/scripts/install.sql
Normal file
13
examples/demo/site/modules/comments/scripts/install.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE comments(
|
||||
`cid` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT UNIQUE,
|
||||
`content` TEXT,
|
||||
`format` VARCHAR(128),
|
||||
`author` INTEGER,
|
||||
`author_name` VARCHAR(255),
|
||||
`created` DATETIME NOT NULL,
|
||||
`changed` DATETIME NOT NULL,
|
||||
`status` INTEGER,
|
||||
`parent` INTEGER,
|
||||
`entity` VARCHAR(255), /* Associated entity */
|
||||
`entity_type` VARCHAR(255) /* Type of associated entity */
|
||||
);
|
||||
@@ -53,9 +53,6 @@ feature -- CMS modules
|
||||
a_setup.register_module (create {CMS_OPENID_MODULE}.make)
|
||||
a_setup.register_module (create {CMS_SESSION_AUTH_MODULE}.make)
|
||||
|
||||
-- User
|
||||
a_setup.register_module (create {CMS_USER_PROFILE_MODULE}.make)
|
||||
|
||||
-- Nodes
|
||||
a_setup.register_module (create {CMS_NODE_MODULE}.make (a_setup))
|
||||
a_setup.register_module (create {CMS_PAGE_MODULE}.make)
|
||||
@@ -69,6 +66,7 @@ feature -- CMS modules
|
||||
|
||||
-- Misc
|
||||
a_setup.register_module (create {CMS_SEO_MODULE}.make)
|
||||
a_setup.register_module (create {CMS_COMMENTS_MODULE}.make)
|
||||
|
||||
-- Taxonomy
|
||||
a_setup.register_module (create {CMS_TAXONOMY_MODULE}.make)
|
||||
|
||||
Reference in New Issue
Block a user