露天社区5.0.d-导入类别 [英] alfresco community 5.0.d - Import categories

查看:65
本文介绍了露天社区5.0.d-导入类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好/下午,



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



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



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



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

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



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

解决方案

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



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



它还支持导入嵌套的类别



以下是示例文件:

 < vdex:vdex xmlns:xsd = http://www.w3.org/2001/XMLSchema# xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance xmlns:vdex = http://www.imsglobal.org/xsd/imsvdex_v1p0 xsi:schemaLocation = http://www.imsglobal。 org / xsd / imsvdex_v1p0 http://www.imsglobal.org/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 : http://docs.alfresco.com/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="http://www.w3.org/2001/XMLSchema#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vdex="http://www.imsglobal.org/xsd/imsvdex_v1p0" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsvdex_v1p0 http://www.imsglobal.org/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-导入类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆