cm:content 和 sys:base 有什么区别
我创建了一个新的内容模型,并将其继承与 cm:content
关联,以将节点保存为特定文件夹下的内容。
但是,如果我想将内容模型与 sys:base 相关联作为示例怎么办?节点将保存在哪里?如何为节点创建容器?
人员和其他内容不继承自 cm:content
,并且我不希望用户从其他位置管理节点,我想确保用户将管理从来自创建的对话框和页面的新内容模型旨在提供类似的服务。
非常感谢您的所有回复
Mohammed Amr 高级系统开发人员 数字系列公司
I create a new content model, and i made its inheritance to be associated with cm:content
to save the nodes as content under specific folder.
But, What if i want to associate the content model with sys:base
as example ? Where the nodes will be saved ? How to create a container for the nodes ?
Person and other content does not inherit from cm:content
, and i don't want the user to manage the nodes from something else where, i want to ensure that the user will manage the nodes created from the new content model from created dialogs and pages designed to serve something like this.
all of your replies is highly appreciated
Mohammed Amr
Senior System Developer
Digital Series Co.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
sys:base
定义于systemModel.xml
如下(此处显示最后的 HEAD 修订版):通过
systemModel
了解以下两个方面:对于此类强制 类型。cm:content
间接继承自sys:base
,正如您在contentModel.xml
,通过cm:object 这会带来一些限制并且将仙粉索引到其上。
在
contentModel
中,您还可以看到cm:folder
公开了一个名为cm:contains
的新关联,该关联的目标是sys:base< /代码> 对象。这意味着在
cm:folder
(和子类型)中,您可以存储由sys:base
启动的层次结构分支中的每种类型,包括cm:object
代码>和<代码>cm:内容。这应该足以向您展示如何:
cm:content
和sys:base
之间没有太大区别cm:folder 类型中的此类类型sys:base
而不是cm:content
或cm:object
,但是您会错过那些更高级类型引入的所有功能我不明白为什么内容类型应该改变或影响用户访问内容的方式,尤其是当您有自己的页面向用户显示内容时。
附带说明一下,
usr:user
也继承自sys:base
,正如您在userModel.xml
sys:base
is defined insystemModel.xml
as follows (last HEAD revision showed here):Go through the
systemModel
to learn about the two aspects that are mandatory for such type.cm:content
inherits indirectly fromsys:base
, as you can see in thecontentModel.xml
, passing throughcm:object
that puts some constraints and indexing fairy powder onto it.In the
contentModel
, you can also see thatcm:folder
exposes a new association namedcm:contains
that targetsys:base
objects. This means that within acm:folder
(and subtypes) you can store every type in the hierarchy branch started bysys:base
, includingcm:object
andcm:content
.This should be already enough to show you how:
cm:content
andsys:base
when it comes to storing such types in acm:folder
sys:base
instead ofcm:content
orcm:object
, but then you'll miss all of the features introduced by those more high level typesI can't see why content types should change or affect the way users access content, especially if you have your own pages to show content to users.
As a side note, also
usr:user
inherits fromsys:base
, as you can see in theuserModel.xml