Hi,

and thanks for the module !
Would it be possible to set several classes of footnotes, with different CSS and permission/visibility settings ; e.g.

  • notes about related-to-source (of text) problems displayed in blue, notes about related-to-subject (of text) problems displayed in brown
  • 'admin notes' visible by site's administrators only, 'members notes' visible by subscribers only and 'public notes' visible by any visitors
  • 'administrators' may create content and add footnotes, 'editors' may edit existing content and add footnotes (but not create content), 'selected visitors' may add only 'public notes', and so on...

Is there already any plan to provide such great features ?

Thanks,

Comments

hingo’s picture

Status: Active » Closed (won't fix)

Hi Iko!

* notes about related-to-source (of text) problems displayed in blue, notes about related-to-subject (of text) problems displayed in brown

This could be done. There is some closed bug where we discussed the idea of using a class="" attribute or similar in the footnotes tag.

However, we ended up with another solution which is in the current release: Using a value="" attribute (see README). You can do somewhat the same thing by using different values for the different types of footnotes. But you would still end up with all footnotes in the same list:

1. normal numbered footnote
2. normal numbered footnote
*. another kind of footnote
3. normal numbered footnote
**. another kind of footnote

Of course, you could still implement a completely separate class attribute if you wanted too, then you wouldn't have to specify a value. (Otoh, you would have to specify the class.)

* 'admin notes' visible by site's administrators only, 'members notes' visible by subscribers only and 'public notes' visible by any visitors

I'm afraid this is way beyond the scope of footnotes.module, and also goes a bit against the semantics of Drupal. The idea in Drupal is that one "object" can be visible/editable to different users. But I've never seen that parts of texts as marked by an xml tag would be visible or not.

In fact, I don't think the filter.module, upon which footnotes.module depends, would even make that possible.

* 'administrators' may create content and add footnotes, 'editors' may edit existing content and add footnotes (but not create content), 'selected visitors' may add only 'public notes', and so on...

Again, this is not how Drupal nodes work. The footnotes are just part of the text, just like bold text, italics, headings and links. User rights are given to the whole article or page, not to small parts of texts.

**

Since the majority of this suggestion is in my understanding not possible to implement in Drupal (or would go against drupal user rights concept) I will change the status to "won't fix", sorry.

(In fact, you probably are looking for something like a quite advanced enhancement to the comment.module instead.)

iko’s picture

Hi,

Thanks a lot for your long and precise answer ; sorry for not having explored the module deeply enough to see the value="" attribute.
I'm very interested in what you say about Drupal's semantics ; I have been working with Drupal for a few months and I didn't go around it until now. For a collaborative edition project, I will browse the enhancements of comment.module as you suggest.

Thanks again for your sollicitude and, of course, for the module itself.

Iko