FAQ part for XP 6.x

Enonic version: 6.15
OS: centOs

Hi.

Anyone has a FAQ part that I can reuse?

Thanks

Hey Tnn,

Most developers (to my knowledge) here are working under a corporation. So it can be quite difficult for them to share code.
But i can give you some pointers how to create it?
Like use a textLine input for the question.
Use the textArea or htmlArea for the answer.
Wrap those in an itemSet if you want to create multiple questions inside a single part.
Just send those fields to the front-end with thymeleaf. Don’t forget to process them first if they are htmlAreas.
In the html doc add a <detail> & <summary> element and you should be fairly close to a good FAQ part.

2 Likes