Expand my Community achievements bar.

SOLVED

user with image and text data

Avatar

Level 2

Hi,

I have a requirement that a user on the site need to have some image and text data. Those images and texts were added by dragging and editing sidekick components to the page. I wonder what could be the best way to achieve this.

Thanks and regards,

Yy

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

As mentioned in last post, to store data in JCR nodes,

i wold like to share come community articles doing similar kind of things, that you could alter according to your needs.

Link:- Storing Images AEM using AssetManager API :- https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

         Here Front-end JSP send image data as a post request to backend OSGI

Link:- Querying AEM data using JCR API :- https://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

5 Replies

Avatar

Correct answer by
Administrator

Hi 

As mentioned in last post, to store data in JCR nodes,

i wold like to share come community articles doing similar kind of things, that you could alter according to your needs.

Link:- Storing Images AEM using AssetManager API :- https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

         Here Front-end JSP send image data as a post request to backend OSGI

Link:- Querying AEM data using JCR API :- https://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 10

Have a look into Identity Management [1] where profile page can be created and custom field can be added.

Also take a look into same available in Geometrixx Media as well.

[1] https://docs.adobe.com/docs/en/cq/5-6-1/administering/identity_management.html

Avatar

Level 2

Hi Edubey,

In my case, the user can click a button to add some image and text data to his account for future retrieving. Besides Identity Management, do I need to create some tables and do querying to persist data on JCR ?

Thanks, 

 

Yy

Avatar

Level 10

For this - i would setup the JCR to store nodes that store user data, either text or images. You would need to store and retrieve user data in the AEM JCR. You can use the AEM JCR API to perform this. 

Avatar

Level 10

In AEM component, data automatically gets saved in jcr unless you delete component or data ( which I am assuming you wont be doing) . In your case create a component to add images and text, put it in profile page, thats it.

User will author it, and data will remain in JCR.