views:

346

answers:

2

I see there are several nice Accordion (UI) modules, but none seems to be able to display accordion for subsections of a single node/article. E.g. article on my site has sections "Start", "Middle", "End" and I'd like to be able to see these sections wrapped each under other on a single node page. Like /node/x

  • Start (text available upon clicking)
  • Middle
  • End

Have I missed some good module for this? Or should I write sunch a functionality from scratch?

+1  A: 

I suppose you should change node.tpl.php to manually break node into sections.

Kuroki Kaze
A: 

Finally, I inserted accordion markup inside specific node to get it working, e.g. :

node text here
<div id="accordion">
<h2>section name</h2>
<div> section body</div>
.....
</div>
node end text here

Of course, JQuery accordion was also included into page.tpl.php

PHP thinker