Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.6-1
Component:
nodereference.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2008 at 17:51 UTC
Updated:
4 Feb 2008 at 19:31 UTC
Comments
Comment #1
yched commentedThat behaviour is indeed hardcoded in each field module, in hook_widget. Content.module has no pewer on that.
Well, that's not the case in the forthcoming CCK for D6 : widgets for multiple fields are now handled consistently by content.module, which allows for a nice 'Add more values' JS button :-)
Comment #2
Fintan Darragh commentedHey,
Thanks for the help.
For future reference to those Googling, I've managed to find the integer which controls this behaviour on line 314 of nodereference.module. It's the '2' in this line:
foreach (range($delta, $delta + 2) as $delta) {Thanks!
-Fin
Comment #3
gnosis commentedI've also done this on line 272 of the text.module, in hook_widget, to provide 5 options instead of 3, exact same syntax ($delta + 4). Remember kids: always log if/when you make these kinds of module edits because they will be reverted if you upgrade the module.