user with image and text data | Community
Skip to main content
October 16, 2015
Solved

user with image and text data

  • October 16, 2015
  • 5 replies
  • 1381 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

5 replies

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
October 16, 2015

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
edubey
October 16, 2015

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

y_12Author
October 16, 2015

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

smacdonald2008
October 16, 2015

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. 

edubey
October 16, 2015

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.