我已经创建了一个自定义露天模型,其中有52种自定义对象,我希望它们出现在“创建”下拉菜单中。52个选项看起来有点杂乱,所以我希望我能把它们组织到create的子菜单中。
例如。
Create
> Type A
> Object Type 1
> Object Type 2
> Type B
> Object Type 3
> Object Type 4现在,我的配置如下所示:
<config condition="DocumentLibrary" evaluator="string-compare">
<create-content>
<content icon="object-type-1" id="plain-text" itemid="ancoat:objectType1" label="Object Type 1" mimetype="text/plain"/>
<content icon="object-type-2" id="plain-text" itemid="ancoat:objectType2" label="Object Type 2" mimetype="text/plain"/>
<content icon="object-type-3" id="plain-text" itemid="ancoat:objectType3" label="Object Type 3" mimetype="text/plain"/>
<content icon="object-type-4" id="plain-text" itemid="ancoat:objectType4" label="Object Type 4" mimetype="text/plain"/>
</create-content>
</config>是否有一个选项可以选择每个内容选项应该出现在哪个子菜单上?
发布于 2016-10-03 17:00:02
据我所知,通过共享配置是不可能的,但是你可以重写toolbar.js,它负责渲染菜单。有关示例,请参阅此链接:
https://heshawa.wordpress.com/alfresco-create-from-template-menu-arrange-with-sub-menues/
https://stackoverflow.com/questions/39576253
复制相似问题