Sort Tree Nodes of Browse Dialog in pathfield | Community
Skip to main content
Level 9
October 16, 2015
Solved

Sort Tree Nodes of Browse Dialog in pathfield

  • October 16, 2015
  • 12 replies
  • 3821 views

Hi All,

I was trying the thing mentioned in the link[by directly uploading the package provided] 

http://experience-aem.blogspot.in/2014/04/aem-cq-56-sort-tree-nodes-of-browse-dialog-pathfield.html in OOTB 5.6.1 instance.

After I uploaded the package, hit the page http://localhost:4502/cf#/content/geometrixx-outdoors-mobile/en/men/pants.touch.html[Advanced Tab, Login page selection] in OOTB instance to check if it is working or not. But it doesn't seem to be working.

Is it something like 

- It is not applicable to the thing I am checking?

- Anything else needs to be done?

Any thoughts on the above will be helpful.

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 sreeknc

Hi, The blog post is about using pathfiled in component dialogs; in any component dialog using pathfield, make sure a "dialogopen" listener is registered 

dialogopen="function(){ExperienceAEM.sortTags(this, false);} "

In your case i guess it's a page dialog, getting items from /libs/foundation/components/page/fieldset_sitestructure.json.jsp

I am not suggesting any modification to /libs, but for it to work a "dialogopen" event has to be registered

12 replies

smacdonald2008
Level 10
October 16, 2015

In the solve remark - you have to ensure that dialogopen event is defined.

Take a look at the out of the box samples - more information on that here:

http://dev.day.com/docs/en/cq/current/developing/widgets.html

. Did you take a look at this community artilce. It will help you in general component development for AEM - including working with event handlers, how to define them using scripts, and how to invoke backend services to get JCR data:

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

Also - be sure to use the AEM widget API reference located here:

http://dev.day.com/docs/en/cq/5-6/widgets-api/index.html

askdctmAuthor
Level 9
October 16, 2015

Hi Scott,

First of all, thanks a lot for your reply.

I took a look at the documentation you have mentioned, but not able to understand anything.

I implemented the article on my local instance, by following your article and it seems to be working fine.http://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html.

I was trying to understand the code you have written in http://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html. Went through multiple times, but could not get a very good understanding.

Finding it tough to get that thing to work.