Expand my Community achievements bar.

SOLVED

Extending pathField X-Type to populate tree from custom json

Avatar

Level 2

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

Regards

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

4 Replies

Avatar

Level 10
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    

Avatar

Level 10

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. 

Avatar

Correct answer by
Level 2

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