doramart / DoraCMS

DoraCMS是基于Nodejs+eggjs+mongodb编写的一套内容管理系统,结构简单,较目前一些开源的cms,doracms易于拓展,特别适合前端开发工程师做二次开发。
https://www.html-js.cn
MIT License
3.46k stars 1.02k forks source link

请问现在如何更改文档属性? #25

Closed biebg closed 8 years ago

biebg commented 8 years ago

如题,想要更改文档属性,类似于添加一种文档模板 请问如何做?

doramart commented 8 years ago

没明白你的意思,是换一种类型的文档还是只是前端展示改变一下?

biebg commented 8 years ago

哦,原问题的意思是 现在文档只有两种 普通文档 jquery文档 两种,是否可以添加文档

我看了下代码 发现现在在后端写死就是这两种文档~~ 添加的话 是需要自己修改源码

在 2016年3月19日,下午5:03,doramart notifications@github.com 写道:

没明白你的意思,是换一种类型的文档还是只是前端展示改变一下?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/doramart/DoraCMS/issues/25#issuecomment-198671396

doramart commented 8 years ago

嗯是的,需要自己改下源代码,同时有必要的话还需要在content对象里加属性,但是应该改动不会很大,你可以试一下

biebg commented 8 years ago

主要是看到你们update log中看到 1.1中将更改文档属性给去掉了~~
建议增加这个选项,这样这个项目就不仅仅只适应于论坛类CMS了,还可以扩展到别的产品或者行业

在 2016年3月19日,下午5:07,doramart notifications@github.com 写道:

嗯是的,需要自己改下源代码,同时有必要的话还需要在content对象里加属性,但是应该改动不会很大,你可以试一下

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/doramart/DoraCMS/issues/25#issuecomment-198671543

doramart commented 8 years ago

主要是不同的行业属性不一样,这个属性应该如何去自定义呢,有没有demo可以参考下

biebg commented 8 years ago

就是基本的,比如我普通企业网站的导航图,属性只有标题 图片 链接~~ 内容再多也还是不同基本属性的组合吧

发自我的 iPhone

在 2016年3月19日,下午5:15,doramart notifications@github.com 写道:

主要是不同的行业属性不一样,这个属性应该如何去自定义呢,有没有demo可以参考下

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub

doramart commented 8 years ago

其实 你添加普通文档就可以满足你的要求,只是前端展示你可以改一下模板就好了

biebg commented 8 years ago

对,只是建议,有那个选项的话,可能比较方便一点~ 😁

发自我的 iPhone

在 2016年3月19日,下午5:23,doramart notifications@github.com 写道:

其实 你添加普通文档就可以满足你的要求,只是前端展示你可以改一下模板就好了

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub

doramart commented 8 years ago

好的,感谢你的建议,后面的版本我考虑下这个地方,谢谢!