Closed (fixed)
Project:
Node style
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 May 2007 at 20:07 UTC
Updated:
12 Mar 2012 at 18:40 UTC
Jump to comment: Most recent file
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./
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | patch-node-style_0.txt | 3.29 KB | grandcat |
Comments
Comment #1
Zen commentedYou 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
Comment #2
grandcat commentedI 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 =)
Comment #3
grandcat commentedI forgot to mention that I tested this patch only by using version 5.x-2.1 ;-)
Comment #4
Zen commentedPlease 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
Comment #5
Zen commentedFixed in D7.
:)
-K