My need currently is that I wan't to allow the checkbox to be used only on certain node types. If I have twenty node types and I need this feature only for few of them, it seems pretty overkill to use this feature on all node types :/
My idea is to make a sort of grid table answering the question "Make title hideable..." for each node type with radio options: "None", "All nodes", "User defined nodes".
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | exclude_node_title-1155272-6.patch | 8.47 KB | imiksu |
| #3 | exclude_node_title-1155272-3.patch | 7.68 KB | imiksu |
Comments
Comment #1
gabrielu commentedThis sounds like a great feature, It's good for settings granularity.
I should find the time to implement this, in the meanwhile patches are welcomed.
Comment #2
imiksuAlright, I'll try to create a patch for this. You'll see the progress at GitHub: https://github.com/mikaelkundert/drupal-exclude-node-title/tree/7.x-1.x
I'll be concentrating only on D7 branch.
Comment #3
imiksuSee attached patch. Needs testing.
The patch does following things:
- Replaced content type settings with radio options on each content type
- Created a function _exclude_node_title() for simplifying the process of detecting whenever the node should contain the title or not
- Makes sure all variables gets deleted on uninstall and entity/bundle deletion (since we're gonna have a variable for each content type)
Comment #4
imiksuAlso, this needs re-setting some variables when updating from current version.
Basically it needs to go thru the nid list and find out which node types contains title-hiding. Those node types needs to be set to "user" value. Also, those node types which are marked to hide title for all nodes needs to have "all" value.
Comment #5
gabrielu commentedOk check latest DEV snapshot.
Comment #6
imiksuSee attachment. This patch includes the upgrade script too.
I wasn't sure about the naming convention with the update number. I guess it also depends on which release you'll include the feature.
Comment #7
gabrielu commentedDone, added to latest DEV and release 7.x-1.4