Make Contemplate work with Table of Contents

giorgio79 - October 28, 2009 - 22:33
Project:Content Templates (Contemplate)
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

I am looking for some tips and ideas on how I could make the Table of Contents module work with my Contemplate driven content.

TOC module currently only checks the node->body for H2 H3 and other similar tags to create a contemplate.

I am hoping it would not be a big hack to pass the contemplate output through the toc functions to generate one for the entire contemplate output, as I have several H2s and H3s in there.

Any ideas? :)

http://drupal.org/project/tableofcontents

#1

giorgio79 - October 28, 2009 - 22:37

Hoops, I meant to say
"TOC module currently only checks the node->body for H2 H3 and other similar tags to create a Table of Contents." :)

There were some discussions here on how to pass node body through the functions to generate the TOC in a node tpl file.

I am hoping I can pass the entire contemplate output through those functions.

http://drupal.org/node/329654

 
 

Drupal is a registered trademark of Dries Buytaert.