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

AlexisWilke - July 2, 2009 - 18:15
Assigned to:Anonymous» 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.

#2

lvl1 - July 3, 2009 - 13:30

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

AttachmentSize
filter_config.gif 11.35 KB

#3

AlexisWilke - July 3, 2009 - 18:03

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:

AttachmentSize
Screenshot.png 49.54 KB

#4

lvl1 - July 4, 2009 - 15:17

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

lvl1 - July 4, 2009 - 15:23

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

AttachmentSize
patch.gif 18.64 KB

#6

AlexisWilke - July 5, 2009 - 09:08
Version:6.x-2.3» 6.x-3.x-dev
Category:support request» feature request
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

#7

lvl1 - July 6, 2009 - 13:02

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.

#8

AlexisWilke - July 6, 2009 - 18:57

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

#9

lvl1 - July 7, 2009 - 01:09

Thats really fast. Let me try it out.

Thank you!

#10

System Message - July 21, 2009 - 01:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.