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

Extending pathField X-Type to populate tree from custom json

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.
pryadav84Accepted solution
Level 2
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

4 replies

edubey
Level 10
October 16, 2015

Here you can find a implementation :

https://docs.adobe.com/docs/en/cq/5-6-1/developing/widgets.html#Tree Overview

Translate
edubey
Level 10
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    
Translate
smacdonald2008
Level 10
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. 

Translate
pryadav84AuthorAccepted solution
Level 2
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

Translate