Download & Extend

"Add the number to the headers" causes numbers to be added twice to toc

Project:Table of Contents
Version:6.x-3.1
Component:Code
Category:bug report
Priority:normal
Assigned:AlexisWilke
Status:active

Issue Summary

When "Add the number to the headers" is set to true, the table of content shows the numbers twice.

Comments

#1

List type ordered + Numbering method other than None = double numbering

Thank you.
Alexis Wilke

#2

Assigned to:Anonymous» AlexisWilke
Status:active» fixed

Okay, this will finally be fixed in version 3.7.

Thank you for your patience!
Alexis Wilke

#3

Status:fixed» closed (fixed)

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

#4

hello,

I have installed version 3.6 and I see this bug is already here.
Is it possible to have a patch to correct this bug in version 3.6? Or is it a planning to know when the 3.7 will be available?

thanks

sjeandroz

#5

Status:closed (fixed)» active

There was a fix to remove the <ol> which was a problem in earlier versions...

But there is still a problem. When "you" run the code twice, it adds the numbers twice.

This happens in different circumstances, but I need to find a way to know that it was run the first time to avoid running again.

If you use any combination of:

  • auto-toc
  • block
  • [toc] tag

then you are not unlikely to get the numbers twice...

Thank you.
Alexis

#6

hello,

I don't understand because I am not in any of your tree cases:
I have not installed toc block, I don't add [toc]tag in my nodes. I just use the auto-toc.
I used an "Unordered list" and if I check "Add the number to the headers", I have the following result:

in toc:

Table des matières

1. 1. Be prepared to walk away
1.1. 1.1. TREE
2. 2. tree2
3. 3. tree3
4. 4. tree4

and in the body:

1. 1. Be prepared to walk away
1.1. 1.1. TREE

Il semblerait que les fonctions "sortable" de Jquery UI ne soient pas prévus pour être utilisée comme gestionnaire d'arborescence.

Bien que cela soit possible, l'ergonomie ne semble pas optimum, ce qui peut cause problème pour la suite.

Voici differentes librairies qui sont susceptibles d'être utilisées pour la gestion d'arborescence

http://www.jstree.com/demo
2. 2. tree2

3. 3. tree3

4. 4. tree4

Thanks!

#7

"cause[r] problème" (manque le "r")

Yeah. I have that problem when I use the automated table of contents from the Node type. I'm not too sure what causes it. If you're a programmer and can find the problem, I'd really appreciate a patch.

Thank you.
Alexis

#8

hey! Do you speek french?
If yes, I will be simpler for me to explain my other problems and to explain the use I do with your module (I used it to replace the drupal's book naviguation in the bottom of nodes)!

And for this problem, I will try to resolve it and if I succeed, I will send you the patch!

Thanks again et see you soon ;-)

#9

Je suis français, tout au moins sur mes papiers... Ceci dit, la règle sur Drupal c'est d'écrire en anglais...

Merci.
Alexis

#10

okay, je continuerais d'écrire en anglais si j'ai d'autres questions. (et je risque d'en avoir d'autres ;-))

Merci beaucoup pour toute ton aide et bravo pour ton travail

nobody click here