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:
2017-01-20 16:05:40 +01:00
parent 3bcfb0a44a
commit 2d698f604b
59 changed files with 1761 additions and 679 deletions

View File

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

View File

@@ -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" }
}
}

View File

@@ -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)
);

View 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)
);

View 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;
}

View 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;
}
}
}

View File

@@ -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)