CMS 前台統一導航設計

2021-04-14 10:14:08 字數 2012 閱讀 1312

通過對exo cms portal, mambo以及ibm的cms也深入研究,我決定要取它們的長處,利用他們的思想,但是要簡化

它們的設計。針對cms裡面非常重要的前台導航,我採用以下的設計方法

/* 前台內容節點設計

note_type: 路徑=0,節點=1

content_type: 靜態html=1,動態指令碼=2

use_layout : 是否使用布局檔案,就是類似於sitemesh一樣的布局,使用它可以免去定義頭,腳和導航選單

*/create table tbl_cms_node (

node_id int(11) unsigned not null default '0',

label varchar(255) not null default '',

path varchar(255) not null default '',

name varchar(255) not null default '',

parent_node_id int(11) not null default '0',

node_type char(1) not null default '',

content_type char(1) not null default '',

use_layout char(1) not null default '',

layout varchar(10) not null default '',

primary key  (node_id)

) type=innodb;

insert into tbl_cms_node values (1, 'index', '/',      '首頁',        '0','1','2','n','');

insert into tbl_cms_node values (2, 'xxjj',  '/',      '學校簡介',    '0','0','' ,'' ,'');

insert into tbl_cms_node values (3, 'index', '/xxjj/', '學校簡介首頁','2','1','1','y','wrap');

insert into tbl_cms_node values (4, 'xxgk',  '/xxjj/', '學校概況',    '2','1','1','y','wrap');

insert into tbl_cms_node values (5, 'xxdt',  '/xxjj/', '學校動態',    '2','0','' ,'' ,'');

insert into tbl_cms_node values (4, 'index',  '/xxjj/xxdt/', '學校動態首頁文章列表', '5','1','2','y','wrap');

insert into tbl_cms_node values (4, 'n',      '/xxjj/xxdt/', '學校動態文章',         '5','1','2','y','wrap');

"/cms" 下解析的use case

1. /cms/  沒有檔案字尾的,補上index.html

2. /cms/index.html 找到路徑/ 下的index

3. /cms/xxjj/index.html 找到路徑/xxjj/ 下的index

4. /cms/xxjj/xxgk.html  找到路徑/xxjj/ 下的xxgk

5. /cms/xxjj/xxdt/index.html 找到路徑/xxjj/xxdt/ 下的index

6. /cms/xxjj/xxdt/index_1.html 找到路徑/xxjj/xxdt/ 下的index,把pageno=1做為乙個變數放在context裡面

7. /cms/xxjj/xxdt/n00000001.html 找到路徑/xxjj/xxdt/ 下的n,把00000001作為乙個變數article_id=0000001放在context裡面

CMS 前台統一導航設計

通過對exo cms portal,mambo以及ibm的cms也深入研究,我決定要取它們的長處,利用他們的思想,但是要簡化 它們的設計。針對cms裡面非常重要的前台導航,我採用以下的設計方法 前台內容節點設計 note type 路徑 0,節點 1 content type 靜態html 1,動態...

CMS 前台統一導航設計

通過對exo cms portal,mambo以及ibm的cms也深入研究,我決定要取它們的長處,利用他們的思想,但是要簡化 它們的設計。針對cms裡面非常重要的前台導航,我採用以下的設計方法 前台內容節點設計 note type 路徑 0,節點 1 content type 靜態html 1,動態...

CMS 前台統一導航設計

通過對exo cms portal,mambo以及ibm的cms也深入研究,我決定要取它們的長處,利用他們的思想,但是要簡化 它們的設計。針對cms裡面非常重要的前台導航,我採用以下的設計方法 前台內容節點設計 note type 路徑 0,節點 1 content type 靜態html 1,動態...