dotcms2:first step

 

如果没有看那个dotCMS_tutorial.pdf,建议学是搜索一下看一看吧.

想要用这个软件建立一个属于自己的页面,以下是顺序:

1. Structure
2. Containers
3. Template
4. Page
5. Contentlets

可以理解为每一步都是一相模板.只是层次结构不一样.

 

1.在structure里面定义一下这个模板里面是否包含文本框(text),textarea,复选框...这些你经常用到的东西.

2.在container里面就要选定一个structure,然后往里面add variable.variable就是刚才在structure里面定义了的东西,没有定义的是看不到的.

3.Template再把一个container加进去.可以再加上一些html的代码.当然,想要做得好看,是必须加的.否则就只有几个框框摆在上面...

4.page就是一个template的应用.生成page之后,点save and publish,就可以看到你的页面了.这时可以添加content.也就是在contain里面定义的那些组件.组件就是比如有一个像csdn发贴的部分,叫WYSIWYG,在contain里面有这个varable,就在add content里面会看到,也就会出现一个网页里面编辑文档的工具了.add content完了就再publish,一个页面就出来了.

简单吧!

 

但是,html代码怎么写,css怎么用,还是需要自己弄一下的.我现在也还没有弄明白.但是为了增强你的信心可以看一下这个csdn的博客,通过我刚才的使用,我觉得有60%的可能性就是用一个这样的cms搭出来的了,呵呵~

另外再给一个增强信心的东西 ,就是公司用dotcms做出来的网站页面: <!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:widow-orphan; font-size:10.5pt; font-family:宋体; mso-bidi-font-family:宋体; color:black;} a:link, span.MsoHyperlink {mso-style-noshow:yes; mso-style-priority:99; color:#993300; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; mso-ascii-font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman"; mso-font-kerning:0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> http://www.dotcms.org/products/who-is-usingcms.dot

 

再贴一下我的邮件:

<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:widow-orphan; font-size:10.5pt; font-family:宋体; mso-bidi-font-family:宋体; color:black;} a:link, span.MsoHyperlink {mso-style-noshow:yes; mso-style-priority:99; color:#993300; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; text-indent:21.0pt; mso-pagination:widow-orphan; font-size:10.5pt; font-family:宋体; mso-bidi-font-family:宋体; color:black;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; mso-ascii-font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman"; mso-font-kerning:0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:588395862; mso-list-type:hybrid; mso-list-template-ids:-2122960690 -108116816 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 {mso-level-tab-stop:none; mso-level-number-position:left; margin-left:18.0pt; text-indent:-18.0pt;} @list l0:level2 {mso-level-tab-stop:72.0pt; mso-level-number-position:left; text-indent:-18.0pt;} @list l0:level3 {mso-level-tab-stop:108.0pt; mso-level-number-position:left; text-indent:-18.0pt;} @list l0:level4 {mso-level-tab-stop:144.0pt; mso-level-number-position:left; text-indent:-18.0pt;} @list l0:level5 {mso-level-tab-stop:180.0pt; mso-level-number-position:left; text-indent:-18.0pt;} @list l0:level6 {mso-level-tab-stop:216.0pt; mso-level-number-position:left; text-indent:-18.0pt;} @list l0:level7 {mso-level-tab-stop:252.0pt; mso-level-number-position:left; text-indent:-18.0pt;} @list l0:level8 {mso-level-tab-stop:288.0pt; mso-level-number-position:left; text-indent:-18.0pt;} @list l0:level9 {mso-level-tab-stop:324.0pt; mso-level-number-position:left; text-indent:-18.0pt;} ol {margin-bottom:0cm;} ul {margin-bottom:0cm;} -->

      1.  今天试了一下从头用模板建了一个文件夹,http://162.105.74.47/viz/ 感觉如果用模板的话也就这样了。

在这个http://www.dotcms.org/products/who-is-usingcms.dot 网站里面是很多公司用这个软件做的网站链接,可以对比一下我们也可以做出类似的效果。

http://www.cuisine.com.au/

 

      2.  现在我觉得下一步是怎么学会建立自己的模板,当然macro http://localhost/getting_started/macros/ 是必不可少的。

http://www.dotcms.org/api/ API 这一层的现在看来估计暂时也用不到了。

 

3.    在每个文件夹下面建一个indexhtml page 才以在浏览器中打开。每个元素都只有在选中了show on menu 才能被看到。

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值