I LOVE this module! Am implementing it on a site that is just crying for the ability to auto-style node types.. is there a way I could automatically have my site apply a node style to, say, blogs?

q./

CommentFileSizeAuthor
#2 patch-node-style_0.txt3.29 KBgrandcat

Comments

Zen’s picture

Priority: Critical » Normal

You could accomplish this via the Form API (and another module). Use hook_form_alter to change the default value of the node_style select element, or if need be hide it entirely and just pass the preselected type as a '#type' => 'value'.

Patches with a decent UI are welcome :)

hth,
-K

grandcat’s picture

Component: User interface » Code
Assigned: Unassigned » grandcat
Status: Active » Needs review
StatusFileSize
new3.29 KB

I wrote a patch which adds the feature that a node style is automatically chosen depending on the node type. Perhaps, this is what you're looking for =)

See my "feature request" ( http://drupal.org/node/156540 ) or the attachement for the patch.
I would be very pleased if the author of this module takes a look at my patch ;-)

Have fun =)

grandcat’s picture

Version: 5.x-1.1 » 5.x-2.1

I forgot to mention that I tested this patch only by using version 5.x-2.1 ;-)

Zen’s picture

Status: Needs review » Needs work

Please read this thread for my opinion on how this should be accomplished. I've not had a look at the logic of your patch. But, from a quick glance, it does not conform to Drupal coding standards and will need to be re-rolled any way. I will revisit this patch if the other issue does not bear fruit.

Thanks Stefan.
-K

Zen’s picture

Version: 5.x-2.1 » 7.x-1.x-dev
Assigned: grandcat » Zen
Status: Needs work » Fixed

Fixed in D7.

:)
-K

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.