[development] Per-Field format permissions - new addon module
larry at garfieldtech.com
Mon Jan 5 18:23:44 UTC 2009
There's already a half-dozen modules to improve the format handling, and more appearing every day. At this point I am of the mind that any effort to improve the situation in contrib is wasted effort; core's input format handling MUST improve. Gabor has already been spearheading some work on that, but much much more is still needed.
For node bodies, there's the filterbynodetype module that I wrote a while back. There's a patch to add support for comments sitting in the queue that I want to commit if it would actually get a review and RTBC. :-)
There was an issue to add support for CCK text fields as well. I bounced that over to the CCK queue, as filterbynodetype has to work through totally insane form_alter nonsense. I would much rather see CCK handle that itself. For that, talk to KarenS and yched.
Bottom line, absolutely agreed that it's needed, absolutely not agreed that we need yet another contrib module to try and do it. There are too many of them already. Please please please focus on making this system stop sucking in core instead. :-)
On Mon, 05 Jan 2009 18:55:55 +0100, Arancaytar Ilyaran <arancaytar.ilyaran at gmail.com> wrote:
> The ability to assign input formats to specific fields instead of allowing
> forbidding them globally is a feature that I've long missed (and not
> See, for example, this issue for CCK: http://drupal.org/node/81981
> Rather than continuing to try to get this feature into core for node
> bodies and
> comments, or into CCK for text fields, I realized it would be far easier
> provide it via an addon.
> The module would just need to add some extra settings to the node type
> form, the
> CCK text field widgets, and elsewhere; it would then have to override the
> filter_form()-generated format selector with its own. The most simple and
> flexible way would be to allow admins to override normal format
> permissions with
> "allow" and "deny", or leaving permissions as they are.
> So this is what I came up with in an afternoon of experimenting (only node
> bodies so far, no CCK or comments):
> Before I clean it up for d.o contrib, I'd like some feedback: Is this
> has it been done, does it hit the spot or require some additional
More information about the development