Extending pathField X-Type to populate tree from custom json | Community
Skip to main content
New Participant
October 16, 2015
Solved

Extending pathField X-Type to populate tree from custom json

  • October 16, 2015
  • 4 replies
  • 1403 views

Is there a way to populate custom tree structure in pathfield x-type, instead of repository tree.

Regards

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 pryadav84

Thanks for the response. I was able to implement this following this post: http://experience-aem.blogspot.com/2014/03/aem-cq-56-pathfield-widget-with-search.html

4 replies

edubey
New Participant
October 16, 2015
edubey
New Participant
October 16, 2015
Hi, Could you please be more specific for what you want. Share your use case if you can. Pathfield is for rendering tree structure, what do you mean by custom tree structures? Thanks    
smacdonald2008
New Participant
October 16, 2015

If you are interested in displaying data in a tree like structure - take a look at this article:

https://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html

Its an example of populating an xtype using data returned by a Sling Servlet. 

You can code the Sling Servlet too to create JSON data so the widget displays data to address your business requirements. 

pryadav84AuthorAccepted solution
New Participant
October 16, 2015

Thanks for the response. I was able to implement this following this post: http://experience-aem.blogspot.com/2014/03/aem-cq-56-pathfield-widget-with-search.html