Creating tabbed contents


(Paul) #1

I’d like to enable users to post content with ‘tabs’.

I host a forum where users share and discuss problem-solving case studies. I want to have tabbed contents to allow viewers to think of their own answers for each part, before clicking ahead to view the answer or the next part of the problem. This would make the cases much more fun to read.

The only thing I can think of is using nested ‘hidden text’ - which isn’t very elegant or easy for general users. For example, it took reasonable effort to make the following content-

########################
Part 1 of case study

What is the best next step?

Answer to Part 1

########################

Part 2 of case study

What is the best next step?

Answer to Part 2

########################

Part 3 of case study

What is the best next step?

Answer to part 3. The End.

,

########################
.
There seems to be easier ways of doing it in CSS/javascript/wordpress by using tabs:

Is there a way of creating a similar function in discourse?


(Jeff Atwood) #2

You could create a topic template in the relevant category, and the template would demonstrate how to do it as a pre-filled example.