Skip to main content

Blog Post

Drupal.org better_formats module review - Set default input formats

https://drupal.org/project/better_formats

This is a quick review of a module that needs to make your "rotation," that is, a group of core modules you install on every project.

Drupal has different input formats that can be assigned to different roles, great, right? Well what's annoying about input formats is that by default you can't give a default input format based on a role. So what happens usually is that "filtered html" is the default format and even though the editor of the site has permissions for "full html" they will unknowingly add a new page or story as "filtered html" and wonder why they're images aren't showing up. 
 
That's because even though the wysiwig understands that user's permissions the silly input formats are collapsed and "filtered html" is always selected by default. And even if they become aware of that option, it's still annoying to have to select "full html" every time, right? Why in the world can't we assign a default input format based on that user's role? Well now you can! Enter "better_formats."
 
With the better_formats module you see a new tab on the input formats screen called "defaults." There you will see each user role and can assign a default format for that user. I find usually I'm just assigning the "full html" role to a priveleged user, like an admin or editor, so there's not a lot to do here. I just select "full html" for node editing and leave everything else the same. What's important to note though is that you need to weight this role higher than the others, otherwise they will still see the 'filtered html' input format selected as the default.
 
This module marries well with a good wysiwig like fck editor:
http://drupal.org/project/fckeditor. I prefer fck editor now because Tiny MCE has a) becomed deprecated and b) doesn't understand how to separate an "authenticated user" profile and a priveleged user profile who happens also to be an "authenticated user."
 
What I like to do is set up a simple profile that gives any user bold/italic/link/unlink/underline and then give some more buttons of course for an editor like image widgets/etc. - I think it's nice for even anonymous users or basic authenticated users to have a little wysiwig even if it gives them only a couple buttons. I think it's a nice touch.
 

The only drawback I've seen to this module is that there is no drupal 5 support. I still have some drupal 5 sites, so the other day when I was looking for even a development version I was sorely dissapointed. Other than that this module has worked for me pretty flawlessy and has made the regular "rotation." Enjoy! -J 

UPDATE: Got the drupal 5 blues? No problem! Check out http://drupal.org/project/filter_default. This module gives you the same essentially functionality for drupal 5. No worries! I tried this out on a d5 site today and it works great.

Jay Callicott

Meet team member, Jay Callicott

An enthusiastic Drupal developer of ten years, Jay spent six years as Mediacurrent’s Lead Architect before transitioning to his current role in 2015. As the Vice President of Technical Operations,...

Learn more about Jay >