Tree component | Community
Skip to main content
Ankur_Khare
Community Advisor
Community Advisor
October 16, 2015
Solved

Tree component

  • October 16, 2015
  • 3 replies
  • 1224 views

For one component we need to create a tree like structure for example one question will have multiple options on click of one of them other questions will be displayed and  in the same way will move to the next level.

Please let me know how should i proceed for this requirement.

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 smacdonald2008

You will have to develop a custom component that reads content taken form the JCR  -- the questions and then have a view that moves to the next question (on click).

Something like:

http://thecodemine.org/#

Notice that these JQuery plugin presents the user will a list of form fields (you can display questions) and then move to the next view. 

3 replies

smacdonald2008
Level 10
October 16, 2015

See this AEM community article that invokes an AEM servlet and returns data to a tree like component:

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

Ankur_Khare
Community Advisor
Community Advisor
October 16, 2015

smacdonald2008 wrote...

See this AEM community article that invokes an AEM servlet and returns data to a tree like component:

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

 

Hi Smac,
 

Thanks for the above information.

But my actual requirement is like -

1..At parent level one question will be there which will have multiple options .

And all these options must be content authorable .

2.On click of one of these options next question will be displayed with options.

And that also is content authorable.

Please guide me how to achieve this.

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

You will have to develop a custom component that reads content taken form the JCR  -- the questions and then have a view that moves to the next question (on click).

Something like:

http://thecodemine.org/#

Notice that these JQuery plugin presents the user will a list of form fields (you can display questions) and then move to the next view.