简体   繁体   English

如何制作新的OpenCMS内容类型,可以放在页面上

[英]How can I make a new OpenCMS content type I can drop onto pages

I'm developing with OpenCMS, and so far, I've gotten a bit of an understanding with templates, model pages, how I can make spaces to drop in editable content, etc. 我正在使用OpenCMS进行开发,到目前为止,我对模板,模型页面,如​​何腾出空间放置可编辑内容等有了一些了解。

I have some elements I want to drop in that are not standard content types like Text Block or Flexible Content. 我想添加一些不是标准内容类型的元素,例如“文本块”或“灵活内容”。 In fact these elements don't exist at all. 实际上,这些元素根本不存在。

I want to make something that: 我想做一些事情:

  1. Contains HTML that I write 包含我编写的HTML
  2. Has only certain parts that my clients can edit easily. 只有某些部分可以让我的客户轻松编辑。

I don't want my clients to have to get into HTML in a Flexible Content widget to for instance, edit some text inside a jQuery accordion or put a title on the handle of the jQuery accordion. 我不希望我的客户不得不在Flexible Content窗口小部件中进入HTML,例如,在jQuery手风琴中编辑一些文本或在jQuery手风琴的句柄上放置标题。

Help needed. 需要帮助。 OpenCMS terminology is seeming a little muddy to me, too. OpenCMS术语在我看来也有些混乱。 Please reference key words if you're an expert. 如果您是专家,请参考关键词。

I am no expert in OpenCms, but as far as I know, you are able to define your own structured content type just like an v8.Article in an .xsd file. 我不是OpenCms的专家,但据我所知,您可以像.vssd文件中的v8.Article一样定义自己的结构化内容类型。 There you can set fields that can be edited in ADE. 您可以在此处设置可以在ADE中编辑的字段。 Your HTML-Code can be added in a custom formatter-jsp. 可以将HTML代码添加到自定义formatter-jsp中。 Hope this helps a bit. 希望这个对你有帮助。 The OpenCms documentation ist not very extensive... Alkacon offers support, but at very high prices... OpenCms文档还不够广泛... Alkacon提供了支持,但是价格很高...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM