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".

Comments

gabrielu’s picture

This 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.

imiksu’s picture

Alright, 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.

imiksu’s picture

Status: Active » Needs review
StatusFileSize
new7.68 KB

See 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)

imiksu’s picture

Also, 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.

gabrielu’s picture

Ok check latest DEV snapshot.

imiksu’s picture

StatusFileSize
new8.47 KB

See 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.

gabrielu’s picture

Status: Needs review » Closed (fixed)

Done, added to latest DEV and release 7.x-1.4