在AEM 6.1 JCR存储库中存储自定义数据 [英] storing custom data in AEM 6.1 JCR repository

查看:120
本文介绍了在AEM 6.1 JCR存储库中存储自定义数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚获得AEM 6.1,并且还接受了开发人员培训。我来自另一个CMS背景(Sharepoint),想了解/知道我是否需要创建一个列表来将数据存储到其中,并以编程方式在项目中页面或其他公共库中的某个位置引用该列表,我该怎么办?这样做,我将数据存储在哪里,是在/ etc文件夹中。我猜不清楚,我从训练中学到的是数据以键/值对的形式存储在节点类型中,因此例如,如果我有一部电影列表,其属性如发布日期,演员,奖项等。我是否将该信息存储在AEM中,我不想将其存储为页面列表组件的一部分。让我知道我的问题是否含糊不清,正如我所说,我正在从另一个CMS过渡。

We just got AEM 6.1, and went through developer training, as well. I am coming from another CMS background (Sharepoint) and wanted to learn / know, if i need to create a list to store data into it, and refer that programatically, somewhere on the page or other common libraries in my project , how do i do that and where do i store the data , is that in the /etc folder. Not clear, I guess, what i learnt from the training is that data is stored in node types as Key / Value pair, so for example if i had a list of movies that with attributes such as date released, actors, awards etc. how do i store that information in AEM, i don't want to store this as a part of the list component of the page. let me know if my question is vague, as i said, i am transitioning form another CMS. Thanks in advance.

我还要感谢任何指向博客等的指针。

I would also appreciate any pointers to blogs, etc..

推荐答案

@Rahul
在哪里存储数据?数据可以存储在/ etc文件夹和/ content文件夹中。 / etc中的文件夹通常用于补充应用程序的业务逻辑代码开发,例如。 clientlibs文件夹用于存储客户端代码(网站样式,脚本等。
content文件夹是创作内容,用户生成的内容作为键值对保留的位置,您将必须使用jcr api构建逻辑来检索通常使用核心Java来构建此逻辑,如果要从多个节点中获取数据,则可以遍历节点并用内容填充数据结构,如果需要从单个节点中获取数据,则可以检索它
这是一篇描述如何从CQ访问内容的文章,具体取决于程序员和所涉及的业务场景。 https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

这篇关于在AEM 6.1 JCR存储库中存储自定义数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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