Skip to main content
Level 2
Oct 16, 2015 2:28 AM UTC
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
Oct 16, 2015 2:28 AM UTC

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

pryadav84AuthorAccepted solution
Level 2
Oct 16, 2015 2:28 AM UTC

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
smacdonald2008
Level 10
Oct 16, 2015 2:28 AM UTC

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
edubey
Level 10
Oct 16, 2015 2:28 AM UTC
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
edubey
Level 10
Oct 16, 2015 2:28 AM UTC

Here you can find a implementation :

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

Translate