Expand my Community achievements bar.

SOLVED

Tree component

Avatar

Community Advisor

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

3 Replies

Avatar

Level 10

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

Avatar

Community Advisor

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.

Avatar

Correct answer by
Level 10

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.