Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By webdev100 on
Hi,
I have a content type Q/A with title and body field. I have added 20 contents. I like to create a view to display the questions and answers. By default, I like to only see the questions as links (title field). Once People click the links, people should see the answer (body field). then they click the link again, answers will collapse. I am not sure how to do it.
Thanks.
Comments
=-=
https://www.drupal.org/project/views_accordion
FAQ?
Have you tried using the FAQ module and content type? I've done as you describe with this module. It does this for you via settings and also there is a Q&A add-on module (among others) to extend it's features and functions.
Hope this helps.