I currently use <!--tableofcontents list:ol; title:Contents;--> to display the title as 'Contents'. I would like to change the default 'Table of Contents' title to 'Content' in all instances.

Can this be done?

CommentFileSizeAuthor
#5 patch.gif18.64 KBlvl1
#3 Screenshot.png49.54 KBAlexisWilke
#2 filter_config.gif11.35 KBlvl1

Comments

AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke

Did you look in the settings?

admin/settings/fitlers

then select the filter with the TOC and click on "Configure". It should be in there, I would think.

lvl1’s picture

StatusFileSize
new11.35 KB

Sorry. Could not find it in the configure page of the filter in which i have enabled TOC. (@ admin/settings/filters/5/configure)

AlexisWilke’s picture

StatusFileSize
new49.54 KB

What you show is the HTML filter setup.

You should have a fieldset with the Table of Content as follow, and it should include a field for the title:

lvl1’s picture

Yup. Its there after i installed 6.x-2.3.

I had applied 2 patches to Table of Contents-6.x-2.2 inorder to make it compatible work with Pear wiki module, http://drupal.org/project/pearwiki_filter.

1. 353298_toc_angle_brackets_6.x.patch http://drupal.org/node/353298 by deviantintegral ,
2. tableofcontents.module.diff http://drupal.org/node/150067#comment-937519 by sibidiba.

The second patch might have accidentally removed the feature to change the default title.

It will be helpful for users of Pear wiki and Table of Contents if you can fix the patch.

Cheers.

lvl1’s picture

StatusFileSize
new18.64 KB

Am attaching the image showing the changes made on running the patches.

1. toc353298.patch is 353298_toc_angle_brackets_6.x.patch and
2. tableofcontents.patch is tableofcontents.module.diff

AlexisWilke’s picture

Version: 6.x-2.3 » 6.x-3.x-dev
Category: support » feature
Status: Active » Fixed

Please, see #353298: TOC in div with id? latest comments for more info about the angle brackets problem.

Note that I also addressed [#937519].

These will be in 3.x-dev only. Please, make sure you wait till you see a version for Jul 5, 2009.

Thank you.
Alexis Wilke

lvl1’s picture

ok.

Please, make sure you wait till you see a version for Jul 5, 2009.

Have the changes been ported to the current dev version so that i can try that out?

Also in the demo page the page slides to the relevant heading for 1 and its decimals. It does not seem to work for headings from 2 unless these headings are expanded.

Thank you.

AlexisWilke’s picture

3.x-dev says Jul 6, 2009 now. That means you have all the latest available in there!

lvl1’s picture

Thats really fast. Let me try it out.

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.