You are here

README.txt in Footnotes 6.2

Footnotes module can be used to easily create automatically numbered footnote 
references into an article or post (such as a reference to a URL). <strong>It
now supports also TinyMCE and CKEditor via WYSIWYG module</strong>.

This release also includes "Better URL filter", which can be used to replace the
(incomplete) URL filter available in Drupal 6.x. The code from Better URL filter
was committed into Drupal 7.x, so it will not appear as a separate module in the
Footnotes 7.x-2.x series.

<h3>ABOUT FOOTNOTES</h3>

The Footnotes module can be used to create automatically numbered footnotes
within a text. In the place where you want to add a footnote enclose the
footnote text within an fn tag: <code>[fn]like this[/fn]</code>. By default,
footnotes are placed at the end of the text. You can also use a
<code>[footnotes]</code> or <code>[footnotes /]</code> tag to position it
anywhere you want. 

The filter will take the text within the tag and move it to a footnote at the
bottom of the page. In it's place it will place a number which is also a link to
the footnote. As of version 2.0 Footnotes supports both <code>[fn]square
brackets[/fn]</code> and <code><fn>angle brackets</fn></code>. 

Also supported in 2.0 is the use of a "value" attribute to a) set the numbering
to use as a label or b) to set an arbitrary text string as label. Ex:
<code> [fn value="5"]This becomes footnote #5. Subsequent are #6, #7...[/fn]
 [fn value="*"]This footnote is assigned the label "*"[/fn]</code>

As of version 2.2 you can have multiple references to the same footnote in the
text body.
<code> [fn value="5"]This becomes footnote #5.[/fn]
 [fn value="5"]This is a reference to the same footnote #5, this text itself is
discarded.[/fn]</code>

Since 2.4 Footnotes supports both TinyMCE and CKEditor via plugins to the WYSIWYG
module. They each work slightly differently, please see the README for those
plugins to learn more.

<h3>If you are upgrading from 2.3 or earlier</h3>

Beginning with version 2.4, Footnotes will highlight the footnote text if you
click on the footnote reference link. (This was inspired by wikipedia, see
[#728658]). The highlight color is light gray. If this clashes with your site's
colors, or you just want to set a nicer color (or unset the feature altogether)
you need to override the default color in your own theme. (See below).

As part of this feature, CSS class names have moved tags. While unlikely, if you
have used these in your own themes, please change your CSS accordingly:
<ul>
<li>The "footnote" class used to be the A or SPAN element that is the footnote
number/label in the list of footnotes. This class is now the LI element
containing the entire footnote.</li>
<li>The A or SPAN element now has the class "footnote_label"</li>
</ul>

Due to changes in HTML and CSS, <strong>you need to clear the Drupal
cache</strong> after upgrading to version 2.4 or later.

Version 2.4 introduces an optional feature that identical footnotes are
collapsed into one, as if they had the same value="" attribute. This must be
enabled from admin/settings/filters by choosing the relevant "Input format" and
then the "Configure" tab. By default, footnotes are separate unless you specify
them to have the same value="" attribute.

The erroneously named "footnotes-aternative_layout.css" file had been kept for
backward compatibility but is now removed in 2.4. The correct file is
"footnotes-alternative_layout.css". This file was updated to reflect changes in
the default css file.

<h3>BETTER URL FILTER</h3>

This version of Footnotes includes also a "Better URL filter". This is a fork of
the URL filter in Drupal core filter.module. The original URL filter is buggy
and works particularly badly together with Footnotes.

<strong>Note: The code from Better URL filter has now been committed to
Drupal 7 core. It will remain in the 6.x-* series of Footnotes, but will
disappear from the 7.x-* series.</strong>

In particular Footnotes users have suffered from the Drupal URL filter not
converting URL's inside footnotes to links, however, the Better URL filter can
be used by anyone wishing more correct URL filter functionality, even if you
don't use footnotes. (You don't even need to enable the Footnotes filters to use
the Better URL filter.)


<h3>INSTALL INSTRUCTIONS FOR FOOTNOTES.MODULE</h3>

1. Copy the contents of this module to modules/footnotes folder.
2. Login as site administrator.
3. Activate footnotes on the administer->modules page.
4. To use the footnotes filter in some input formats, go to administer->input
formats.
5. For selected input formats, select configure and activate a suitable
footnotes filter. 

Note: Typically you want the footnotes filter to be pretty early in the chain. 
If you need to lift the Footnotes filter higher up, click "rearrange".

Also see section about HTML filter below.


<h3>TIPS n TRICKS (CSS)</h3>

Many Footnotes users don't want the footnotes to show in teasers (such as the
front page listing). The correct way to prevent that is by using CSS. See
[#209037] for examples.

Beginning with version 2.4, Footnotes will highlight the footnote text if you
click on the footnote reference link. (This was inspired by wikipedia, see
[#728658]). The highlight color is light gray. If this clashes with your site's
colors, or you want to set a nicer color (or unset the feature
altogether) you need to override the default color in your own theme. The below
CSS can be used for that:

<code>
.see_footnote:target,
.footnotes .footnote:target {
  background-color: #ffeeee; /* Set footnote highlight color to light pink. */
}
.see_footnote:target {
  border: solid 1px #ffaaaa; /* Set border color of highlighted footnote ref to
light red. */
}
</code>

<h3>TEXTILE STYLE FOOTNOTES</h3>

There is also another filter which does the same with a Textile markup style.
Use it together with the Textile module.

Note: The Textile style filter is no longer actively developed and may become
deprecated. It is better to use the <code><fn>...</fn> or [fn]...[/fn]</code>
style footnotes with any markup you are using.



<h3>HTML FILTER</h3>

Footnotes.module is designed such that it can be used together with Drupal's
html filter, and in particular you should have footnotes first and html filter
later.

This version of Footnotes has been redesigned so that it only outputs html tags
that are allowed in a default installation of HTML filter. (Tags used are A, UL
and LI.)


<h3>KNOWN ISSUES</h3>

Version 2.0 uses a new markup for the list of footnotes. It is an UL list with
CSS taking away the browser generated list bullets and moving the link numbers
towards the left instead. All IE versions have a bug that the numbers are
slightly lower than the baseline of the footnote text. (If you know how to fix
this, please tell.) In addition IE 5.5 has a more serious bug that the footnote
number will be on top of the first letters of the footnote text. There doesn't
seem to be a way to fix this.

The Views API functionality only works in the common use case when footnotes
are at the end of the text, but does not work correctly when using [footnotes]
tag explicitly. See [#1003690] to follow up on this bug.

The development version of Drupal7 has a bug in that CSS and JavaScript files
added by modules are absent from the page. If you are hit by this bug, your
footnote references will not appear as supertext, and the list of footnotes will
have duplicate numbering. There is a workaround to empty Drupal's cache table
in Administer > Site Configuration > Performance > Clear cached data after which 
everything works again. To follow up on this bug, see [#279420]

<h3>COPYRIGHT AND ACKNOWLEDGEMENTS</h3>

Footnotes.module is copyrighted by Henrik Ingo and other contributors. It is
licensed by the same conditions as Drupal itself. (GPL license)

Footnotes.module was originally created by henrik.ingo@avoinelama.fi ("hingo" on
drupal.org) in the summer of 2006.

The HTML footnotes were seriously enhanced by "beginner" (on drupal.org) and
later on by other users comments and code snippets.

Footnotes was originally developed for http://openlife.cc/onlinebook
Beginner was the second to use it on his site at 
http://www.reuniting.info/wisdom/sources/metaphysical/
a_course_in_miracles_sacred_sexuality_holy_relationship

I wish to thank all contributors for letting me experience the miracle of
maintaining an Open Source module living its own life!

File

README.txt
View source
  1. Footnotes module can be used to easily create automatically numbered footnote
  2. references into an article or post (such as a reference to a URL). It
  3. now supports also TinyMCE and CKEditor via WYSIWYG module.
  4. This release also includes "Better URL filter", which can be used to replace the
  5. (incomplete) URL filter available in Drupal 6.x. The code from Better URL filter
  6. was committed into Drupal 7.x, so it will not appear as a separate module in the
  7. Footnotes 7.x-2.x series.
  8. ABOUT FOOTNOTES

  9. The Footnotes module can be used to create automatically numbered footnotes
  10. within a text. In the place where you want to add a footnote enclose the
  11. footnote text within an fn tag: [fn]like this[/fn]. By default,
  12. footnotes are placed at the end of the text. You can also use a
  13. [footnotes] or [footnotes /] tag to position it
  14. anywhere you want.
  15. The filter will take the text within the tag and move it to a footnote at the
  16. bottom of the page. In it's place it will place a number which is also a link to
  17. the footnote. As of version 2.0 Footnotes supports both [fn]square
  18. brackets[/fn] and angle brackets.
  19. Also supported in 2.0 is the use of a "value" attribute to a) set the numbering
  20. to use as a label or b) to set an arbitrary text string as label. Ex:
  21. [fn value="5"]This becomes footnote #5. Subsequent are #6, #7...[/fn]
  22. [fn value="*"]This footnote is assigned the label "*"[/fn]
  23. As of version 2.2 you can have multiple references to the same footnote in the
  24. text body.
  25. [fn value="5"]This becomes footnote #5.[/fn]
  26. [fn value="5"]This is a reference to the same footnote #5, this text itself is
  27. discarded.[/fn]
  28. Since 2.4 Footnotes supports both TinyMCE and CKEditor via plugins to the WYSIWYG
  29. module. They each work slightly differently, please see the README for those
  30. plugins to learn more.
  31. If you are upgrading from 2.3 or earlier

  32. Beginning with version 2.4, Footnotes will highlight the footnote text if you
  33. click on the footnote reference link. (This was inspired by wikipedia, see
  34. [#728658]). The highlight color is light gray. If this clashes with your site's
  35. colors, or you just want to set a nicer color (or unset the feature altogether)
  36. you need to override the default color in your own theme. (See below).
  37. As part of this feature, CSS class names have moved tags. While unlikely, if you
  38. have used these in your own themes, please change your CSS accordingly:
    • The "footnote" class used to be the A or SPAN element that is the footnote
    • number/label in the list of footnotes. This class is now the LI element
    • containing the entire footnote.
    • The A or SPAN element now has the class "footnote_label"
  39. Due to changes in HTML and CSS, you need to clear the Drupal
  40. cache after upgrading to version 2.4 or later.
  41. Version 2.4 introduces an optional feature that identical footnotes are
  42. collapsed into one, as if they had the same value="" attribute. This must be
  43. enabled from admin/settings/filters by choosing the relevant "Input format" and
  44. then the "Configure" tab. By default, footnotes are separate unless you specify
  45. them to have the same value="" attribute.
  46. The erroneously named "footnotes-aternative_layout.css" file had been kept for
  47. backward compatibility but is now removed in 2.4. The correct file is
  48. "footnotes-alternative_layout.css". This file was updated to reflect changes in
  49. the default css file.
  50. BETTER URL FILTER

  51. This version of Footnotes includes also a "Better URL filter". This is a fork of
  52. the URL filter in Drupal core filter.module. The original URL filter is buggy
  53. and works particularly badly together with Footnotes.
  54. Note: The code from Better URL filter has now been committed to
  55. Drupal 7 core. It will remain in the 6.x-* series of Footnotes, but will
  56. disappear from the 7.x-* series.
  57. In particular Footnotes users have suffered from the Drupal URL filter not
  58. converting URL's inside footnotes to links, however, the Better URL filter can
  59. be used by anyone wishing more correct URL filter functionality, even if you
  60. don't use footnotes. (You don't even need to enable the Footnotes filters to use
  61. the Better URL filter.)
  62. INSTALL INSTRUCTIONS FOR FOOTNOTES.MODULE

  63. 1. Copy the contents of this module to modules/footnotes folder.
  64. 2. Login as site administrator.
  65. 3. Activate footnotes on the administer->modules page.
  66. 4. To use the footnotes filter in some input formats, go to administer->input
  67. formats.
  68. 5. For selected input formats, select configure and activate a suitable
  69. footnotes filter.
  70. Note: Typically you want the footnotes filter to be pretty early in the chain.
  71. If you need to lift the Footnotes filter higher up, click "rearrange".
  72. Also see section about HTML filter below.
  73. TIPS n TRICKS (CSS)

  74. Many Footnotes users don't want the footnotes to show in teasers (such as the
  75. front page listing). The correct way to prevent that is by using CSS. See
  76. [#209037] for examples.
  77. Beginning with version 2.4, Footnotes will highlight the footnote text if you
  78. click on the footnote reference link. (This was inspired by wikipedia, see
  79. [#728658]). The highlight color is light gray. If this clashes with your site's
  80. colors, or you want to set a nicer color (or unset the feature
  81. altogether) you need to override the default color in your own theme. The below
  82. CSS can be used for that:
  83. .see_footnote:target,
  84. .footnotes .footnote:target {
  85. background-color: #ffeeee; /* Set footnote highlight color to light pink. */
  86. }
  87. .see_footnote:target {
  88. border: solid 1px #ffaaaa; /* Set border color of highlighted footnote ref to
  89. light red. */
  90. }
  91. TEXTILE STYLE FOOTNOTES

  92. There is also another filter which does the same with a Textile markup style.
  93. Use it together with the Textile module.
  94. Note: The Textile style filter is no longer actively developed and may become
  95. deprecated. It is better to use the ... or [fn]...[/fn]
  96. style footnotes with any markup you are using.
  97. HTML FILTER

  98. Footnotes.module is designed such that it can be used together with Drupal's
  99. html filter, and in particular you should have footnotes first and html filter
  100. later.
  101. This version of Footnotes has been redesigned so that it only outputs html tags
  102. that are allowed in a default installation of HTML filter. (Tags used are A, UL
  103. and LI.)
  104. KNOWN ISSUES

  105. Version 2.0 uses a new markup for the list of footnotes. It is an UL list with
  106. CSS taking away the browser generated list bullets and moving the link numbers
  107. towards the left instead. All IE versions have a bug that the numbers are
  108. slightly lower than the baseline of the footnote text. (If you know how to fix
  109. this, please tell.) In addition IE 5.5 has a more serious bug that the footnote
  110. number will be on top of the first letters of the footnote text. There doesn't
  111. seem to be a way to fix this.
  112. The Views API functionality only works in the common use case when footnotes
  113. are at the end of the text, but does not work correctly when using [footnotes]
  114. tag explicitly. See [#1003690] to follow up on this bug.
  115. The development version of Drupal7 has a bug in that CSS and JavaScript files
  116. added by modules are absent from the page. If you are hit by this bug, your
  117. footnote references will not appear as supertext, and the list of footnotes will
  118. have duplicate numbering. There is a workaround to empty Drupal's cache table
  119. in Administer > Site Configuration > Performance > Clear cached data after which
  120. everything works again. To follow up on this bug, see [#279420]
  121. COPYRIGHT AND ACKNOWLEDGEMENTS

  122. Footnotes.module is copyrighted by Henrik Ingo and other contributors. It is
  123. licensed by the same conditions as Drupal itself. (GPL license)
  124. Footnotes.module was originally created by henrik.ingo@avoinelama.fi ("hingo" on
  125. drupal.org) in the summer of 2006.
  126. The HTML footnotes were seriously enhanced by "beginner" (on drupal.org) and
  127. later on by other users comments and code snippets.
  128. Footnotes was originally developed for http://openlife.cc/onlinebook
  129. Beginner was the second to use it on his site at
  130. http://www.reuniting.info/wisdom/sources/metaphysical/
  131. a_course_in_miracles_sacred_sexuality_holy_relationship
  132. I wish to thank all contributors for letting me experience the miracle of
  133. maintaining an Open Source module living its own life!