露天社区5.0.d

编程入门 行业动态 更新时间:2024-10-23 17:39:16
本文介绍了露天社区5.0.d-导入类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

早上好/下午,

我目前正在测试Alfresco Community 5.0.d及其提供的可能性。

我想知道如何从XML文件(或XML文件?)中导入类别。我宁愿避免使用AMP / ACP,因为它们对我来说似乎还不清楚。

我查看了官方文档: docs.alfresco/community5.0/concepts/dev-extensions -modules-bootstrapping-categories-xml.html ;根据我的理解,我需要一个包含类别的XML文件,另一个需要注册第一个文件(我不确定第二个文件应该包含什么)。但是,作为一个新手,我真的不明白将XML放在哪里...(或者是否要遵循某些特定的程序)。

我一直在寻找有关此信息,但我发现的所有主题都与Alfresco的较旧版本(以及它们指示的路径在我的Alfresco文件夹中不存在)有关,或使用了相对先进的工具(至少对我来说)。 p>

有人可以向我解释怎么做吗?

预先感谢,这将大有帮助!

解决方案

我们目前正在研究一个使用VDEX作为XML格式导入类别的模块。 VDEX格式对于交换值列表非常有用,并且可以很好地映射到Alfresco类别。

通过从类别管理器内部将网址导入到vdex文件中来工作,因此它可以在运行时导入。

它还支持导入嵌套的类别

以下是示例文件:

< vdex:vdex xmlns:xsd = www.w3/2001/XMLSchema# xmlns:xsi = www.w3/2001/XMLSchema-instance xmlns:vdex = www.imsglobal/xsd/imsvdex_v1p0 xsi:schemaLocation = http://www.imsglobal。 org / xsd / imsvdex_v1p0 www.imsglobal/xsd/imsvdex_v1p0.xsd orderSignificant = false profileType = flatTokenTerms> < vdex:vocabName> < vdex:langstring language = x-none>示例类别< / vdex:langstring> < vdex:langstring language = nl>示例类别< / vdex:langstring> < / vdex:vocabName> < vdex:vocabIdentifier> fase-leerproces< / vdex:vocabIdentifier> < vdex:term orderSignificant = false validIndex = true> < vdex:termIdentifier> cata< / vdex:termIdentifier> < vdex:caption> < vdex:langstring language = nl>类别A< / vdex:langstring> < / vdex:caption> < / vdex:term> < vdex:term orderSignificant = false validIndex = true> < vdex:termIdentifier> catb< / vdex:termIdentifier> < vdex:caption> < vdex:langstring language = nl>类别B< / vdex:langstring> < / vdex:caption> < / vdex:term> < / vdex:vdex>

目前还没有可用的发布详细信息。

Good morning / afternoon,

I am currently testing Alfresco Community 5.0.d and the possibilities it offers.

I would like to know how to import categories from an XML file (or XML files ?). I prefer avoiding using AMP / ACP, as they seem pretty unclear to me.

I've looked into the official documentation : docs.alfresco/community5.0/concepts/dev-extensions-modules-bootstrapping-categories-xml.html ; from what I understood, I need one XML file containing the categories, and another one to "register" the first (I am not sure about what this second one shall consist of). But being quite a newbie, I do not really understand where to put which XML... (or if there are some specific procedures to follow).

I have looked for information about this, but all the topics I found were either related to older versions of Alfresco (and the paths they indicated did not exist in my Alfresco folder) or using relatively "advanced" (at least for me) tools and techniques.

Could someone explain me how to do ?

Thanks in advance, this would help a lot !

解决方案

We are currently working on a module that uses VDEX as an XML-format to import categories. The VDEX-format is useful for exchanging value lists and maps quite well to Alfresco categories.

It works by importing a url to a vdex file from inside the Category Manager, so it can be imported at runtime.

It also supports importing nested categories

Here's an example file:

<vdex:vdex xmlns:xsd="www.w3/2001/XMLSchema#" xmlns:xsi="www.w3/2001/XMLSchema-instance" xmlns:vdex="www.imsglobal/xsd/imsvdex_v1p0" xsi:schemaLocation="www.imsglobal/xsd/imsvdex_v1p0 www.imsglobal/xsd/imsvdex_v1p0.xsd" orderSignificant="false" profileType="flatTokenTerms"> <vdex:vocabName> <vdex:langstring language="x-none">Example categories</vdex:langstring> <vdex:langstring language="nl">Example categories</vdex:langstring> </vdex:vocabName> <vdex:vocabIdentifier>fase-leerproces</vdex:vocabIdentifier> <vdex:term orderSignificant="false" validIndex="true"> <vdex:termIdentifier>cata</vdex:termIdentifier> <vdex:caption> <vdex:langstring language="nl">Category A</vdex:langstring> </vdex:caption> </vdex:term> <vdex:term orderSignificant="false" validIndex="true"> <vdex:termIdentifier>catb</vdex:termIdentifier> <vdex:caption> <vdex:langstring language="nl">Category B</vdex:langstring> </vdex:caption> </vdex:term> </vdex:vdex>

No release details available yet I'm afraid.

更多推荐

露天社区5.0.d

本文发布于:2023-11-28 13:01:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642513.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:露天   社区

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!