Change default title
lvl1 - July 2, 2009 - 11:57
| Project: | Table of Contents |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | AlexisWilke |
| Status: | closed |
Description
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?

#1
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.
#2
Sorry. Could not find it in the configure page of the filter in which i have enabled TOC. (@ admin/settings/filters/5/configure)
#3
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:
#4
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.
#5
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
#6
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
#7
ok.
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.
#8
3.x-dev says Jul 6, 2009 now. That means you have all the latest available in there!
#9
Thats really fast. Let me try it out.
Thank you!
#10
Automatically closed -- issue fixed for 2 weeks with no activity.