Extracted page support from cms_node_module, and add a proper CMS_PAGE_MODULE.
- now, the CMS_PAGE_MODULE has to be declared in the related CMS_SETUP via CMS_EXECUTION. (See demo for example) Improved the export facilities. Implemented blog and page export. Added import facilities. Implemented blog and page import. Improved node revision web interface (allow to edit a past revision, in order to restore it as latest revisionm i.e current). Removed specific tag from blog module, and reuse the taxonomy module for that purpose. Added WIKITEXT module that provide a WIKITEXT_FILTER, so now we can have wikitext content. - for now, no support for wiki links such as [[Foobar]].
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
<library name="cms_seo_module" location="..\..\modules\seo\seo-safe.ecf" readonly="false"/>
|
||||
<library name="cms_session_auth_module" location="..\..\modules\session_auth\cms_session_auth-safe.ecf" readonly="false"/>
|
||||
<library name="cms_taxnomy_module" location="..\..\modules\taxonomy\taxonomy-safe.ecf" readonly="false"/>
|
||||
<library name="cms_wikitext_module" location="..\..\modules\wikitext\wikitext-safe.ecf" readonly="false"/>
|
||||
<library name="persistence_sqlite3" location="..\..\library\persistence\sqlite3\sqlite3-safe.ecf" readonly="false"/>
|
||||
<!--
|
||||
By default, commented, since it depends on specific environment settings.
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
"session_auth": { "location": "../../modules/session_auth" },
|
||||
"taxonomy": { "location": "../../modules/taxonomy" },
|
||||
"files": { "location": "../../modules/files" },
|
||||
"custom_block": { "location": "../../modules/custom_block" }
|
||||
"custom_block": { "location": "../../modules/custom_block" },
|
||||
"wikitext": { "location": "../../modules/wikitext" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,10 +28,3 @@ CREATE TABLE node_revisions (
|
||||
CONSTRAINT Unique_nid_revision PRIMARY KEY (nid,revision)
|
||||
);
|
||||
|
||||
CREATE TABLE page_nodes(
|
||||
`nid` INTEGER NOT NULL,
|
||||
`revision` INTEGER NOT NULL,
|
||||
`parent` INTEGER,
|
||||
CONSTRAINT PK_nid_revision PRIMARY KEY (nid,revision)
|
||||
);
|
||||
|
||||
|
||||
8
examples/demo/site/modules/node/scripts/page.sql
Normal file
8
examples/demo/site/modules/node/scripts/page.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
CREATE TABLE page_nodes(
|
||||
`nid` INTEGER NOT NULL,
|
||||
`revision` INTEGER NOT NULL,
|
||||
`parent` INTEGER,
|
||||
CONSTRAINT PK_nid_revision PRIMARY KEY (nid,revision)
|
||||
);
|
||||
|
||||
15
examples/demo/site/modules/wikitext/files/css/wikitext.css
Normal file
15
examples/demo/site/modules/wikitext/files/css/wikitext.css
Normal file
@@ -0,0 +1,15 @@
|
||||
#main code, #main e, #main eiffel {
|
||||
display: block;
|
||||
font-family: monospace;
|
||||
white-space: pre-wrap;
|
||||
border: solid 1px #ccc;
|
||||
background-color: #fff;
|
||||
line-height: 1.3;
|
||||
padding: 10px;
|
||||
margin: 2px 0 2px 0;
|
||||
}
|
||||
#main code.inline, #main e.inline, #main eiffel.inline {
|
||||
display: inline-block;
|
||||
padding: 0 2px 0 2px;
|
||||
margin: 0;
|
||||
}
|
||||
18
examples/demo/site/modules/wikitext/files/scss/wikitext.scss
Normal file
18
examples/demo/site/modules/wikitext/files/scss/wikitext.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
#main {
|
||||
code, e, eiffel {
|
||||
display: block;
|
||||
font-family: monospace;
|
||||
white-space: pre-wrap;
|
||||
border: solid 1px #ccc;
|
||||
background-color: #fff;
|
||||
line-height: 1.3;
|
||||
padding: 10px;
|
||||
margin: 2px 0 2px 0;
|
||||
|
||||
&.inline {
|
||||
display: inline-block;
|
||||
padding: 0 2px 0 2px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,8 +53,12 @@ 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)
|
||||
a_setup.register_module (create {CMS_BLOG_MODULE}.make)
|
||||
|
||||
-- Files
|
||||
@@ -69,6 +73,9 @@ feature -- CMS modules
|
||||
-- Taxonomy
|
||||
a_setup.register_module (create {CMS_TAXONOMY_MODULE}.make)
|
||||
|
||||
-- Wiki
|
||||
a_setup.register_module (create {WIKITEXT_MODULE}.make (a_setup))
|
||||
|
||||
-- Recent changes
|
||||
a_setup.register_module (create {CMS_RECENT_CHANGES_MODULE}.make)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user