[DUG-TO] A problem to contemplate
Alan Dixon
alan.g.dixon at gmail.com
Tue Apr 14 16:35:42 EDT 2009
On Tue, Apr 14, 2009 at 3:58 PM, Alex De Winne <alexd at therefore.ca> wrote:
> To remove additional fields, I believe would require custom module coding
> with overrides, but I could be wrong.
There are a few ways to alter forms. Modules can do it, but if it's a
matter of hiding fields, you can just do it in your theme, either in a
non-secure way by hiding the form fields using css, or more securely
using the form theme and converting the field to a "value" type [which
isn't guaranteed to work for all node fields, but should work on most
well-behaved node types]. The key downside of using the theme for
security is that you'd lose it if the user somehow managed to access
the form from another theme, but if your changes are really about
useability and cosmetic issues, then it's the right place.
Of course, you can also use javascript if you're a maniac.
--
Alan Dixon, Web Developer
http://consulting.civicrm.ca/
More information about the DUG-TO
mailing list