Closed (fixed)
Project:
Block reference
Version:
6.x-1.9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2009 at 03:23 UTC
Updated:
9 Mar 2010 at 23:30 UTC
Is it possible to set a default so that a predetermined block will appear on all nodes with that field, or must the block be set only on a per node basis at creation?
Comments
Comment #1
danielb commentedYes, just edit the field settings, there is a 'default value' fieldset there. You can't really do it the first time you configure the field, but if you re-edit it, you can.
Comment #2
highvoltage commentedOk, thank you. ^_^
I'll have great use for this module then.
Comment #3
danielb commentedComment #5
dellis commentedI had a follow-up question for this issue...
using the drag-drop list widget, I would like to set multiple defaults using php (since the default "default widget" is a drop-down--not allowing multiples). following the help on the field, I tried:
But, while there does appear to be an additional select widget (3 instead of the usual 2), it still lists all of the blockreferences as
<none>. Any ideas?Thanks. -derrick.
Comment #6
danielb commentedI would just make a module and use hook_form_FORM-ID_alter to set the defaults when the node edit/add page is loaded.
Comment #7
danielb commentedas far as I can tell you've done the right thing with your code, as long as 5 and 7 are the correct values
Comment #8
danielb commented