It's hard to me to write on english. I can write on russian much better. :)

Example of input / Пример ввода:

text[fn value=1]book 1[/fn]
some text[fn value=1][/fn]
text and some text[fn]book 2[/fn]
text text text [fn value=2]book 3[/fn]vxcdv

now module will make:

Text1
some text1
text and some text2
text text text 2

1. book 1
1.
2. book 2
2. book 3

but expected result are same as at wikipedia for example / Но ожидаемый результат должен быть похож на wikipedia например:

text1
some text1
text and some text2
text text text 2vxcdv

1<sup>1</sup> <sup>2</sup> book 1 
2. book 2 
2. book 3 

i wrote a patch file, to make a expected result / Я написал патч файл который делает это

it change 3 functions
_footnotes_replace_callback
theme_footnote_link
theme_footnote_list

CommentFileSizeAuthor
#4 footnotes-multi.0.2.patch4.11 KBhingo
patch.txt4.36 KByTI0r

Comments

hingo’s picture

Hi, and thanks for the patch!

Originally, I didn't really envision that footnotes should do what you ask. Previously a similar request was marked as Won't fix: #586022: Multiple references to same footnote?.

I will think about this for a while. The point that "Wikipedia does it" is good.

I will have to look at your patch and see what makes sense.

yTI0r’s picture

Component: Footnotes.module » Footnotes

Well, how is it?

hingo’s picture

Hi

I just finished with the newly contributed TinyMCE Footnotes plugin, and this is the last one to work on before we can make a new Footnotes release.

Even if I'm still not personally so interested in this feature (in my opinion, each footnote should be unique, that's how it usually is), I've decided I'm still open to implementing this since it can be implemented such that people who don't want this feature don't need to care about it either.

Looking at your patch I feel it is rather invasive, so I will try to implement this with less code changes. But I will still use your patch for examples, so I have something to start from, or if it can't be done more elegantly, I can always fall back to it.

I only have one more day of vacation, so it remains to be seen when I get this done, but I'll be working on it the next time I work on footnotes.

hingo’s picture

Status: Active » Fixed
StatusFileSize
new4.11 KB

This is now committed and will appear overnight in the -dev download. I will also soon issue version 6.x-2.2 which will include this. Thanks for suggesting the feature and providing the first patch.

yTI0r’s picture

I'm happy. ("\(-_-)/")

Status: Fixed » Closed (fixed)

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