This module is great for excluding cck fields, thank you for that.
Is there a way to be able to exclude standard fields as well? For example to have only the tile field when creating a node and nothing else (no taxonomy, no body, no attachments etc). I know that this is not something this module does right now, but would it be possible to change this module to do this? Or is there a different way?
Thanks.
Comments
Comment #1
infojunkieIt's a tricky request. The problem is that any module can alter the node form, without adding any metadata that describes the modification. In the CCK, there is metadata and that's what this module uses to find the fields.
An approach might be to examine the $forms array that's given to us in hook_form_alter. Any entry that's not a Form API directive will be considered a field, and thus could be turned on or off. We will just need to be careful when saving the node because of the missing values.
Can you try to code something like that?
Comment #2
nath commentedIt sounds doable but not easy. So far I'm trying a different approach: Make all fields CCK fields.
For file uploads it was easy, as there is a cck_filefield. I also replaced the taxonomy fields by using content_taxonomy.
The body and the title field are still puzzling me though.
Comment #3
infojunkieFixed in latest 5.x-1.x-dev version. Please check and let me know.
Comment #4
nath commentedExcluding the body and title field seems to be working. Thanks for implementing this, that is a great service. :)
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.