0

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
  • 95
  • 1
  • 2
  • 13
  • As you are asking for pointers to blogs etc., my Berlin Buzzwords presentation on JCR content models might help you get a better feel for how to store things, it's at https://vimeo.com/44298693 and slides at http://slideshare.net/bdelacretaz/a-jcr-view-of-the-world-everything-is-content-everything-is-a-tree – Bertrand Delacretaz Feb 04 '16 at 08:53
  • Thank you, will check it out. – Rahul Feb 05 '16 at 15:52

1 Answers1

2

@Rahul Where to store data? Data can be stored in both the /etc folder and /content folder. Folders in /etc are usually used to supplement the application's business logic code development, for eg. clientlibs folder is used to store client side code(website styling, scripts etc.
The content folder is where the authored content, user generated content gets persisted as key value pairs and you will have to build a logic using jcr api's to retrieve this data from content nodes. You usually use core java to build this logic, if you want data from multiple nodes you can loop through the nodes and populate a data structure with the content, if you require data from a single node you can retrieve it to a variable, it is all upto the programmer and the business scenario involved. Here is an article which describes how to access content from CQ. https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

SubSul
  • 2,523
  • 1
  • 17
  • 27
  • Thanks a lot, It makes sense. I was also trying to find out if the list component (whether sightly or JSP) on the page, could also be used to store data in the nodes, reason , i don't want that page to be visible , but i would like to use the list structure (data structure) to persist data, like for an example i gave above , i wanted to store list of movies, actors, date released, rating etc.. . in a single list. This kind of use case are very common on a website. if this could all be possible using AEM interface rather than wiring up java code to JCR repository. Thanks, appreciate the help. – Rahul Feb 03 '16 at 06:02