hello there,
I just updated to the latest views-6.x-3.x-dev and now all my cck-nodereference dropdown widgets that use a view for the available options are all limited to 10 items (even though the corresponding views show many more). the same is true for the multiselect widget (http://drupal.org/project/multiselect). with the autocomplete widget it works fine.
I have tried changing the display settings for the corresponding views (number of items displayed, all items, paged, ...) but nothing helped. I also tried using different (created new) views and/or new created nodereference field. But everything without success.
Sorry if this is not the right issue queue and/or type but I just updated views and the problem occurred so I thought this would be the right place ...
Thanks in advance, any ideas welcome!
Cheers,
cossme
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 1015810-nodereference_select_all_items-14.patch | 783 bytes | travist |
| #12 | 1015810-nodereference_select_all_items-12.patch | 598 bytes | travist |
| #8 | cossme_fix_noderef.tar_.gz | 882 bytes | cossme |
Comments
Comment #1
dawehnerIt's a field provided by cck. So this issue should be set against cck.
Comment #2
cossme commentedThanks dereine for moving the post to the correct issue queue - even though I am still thinking it it something that was broken by one of the latest views-6.x.3.x-dev changes because I didn't do a cck update lately.
So to clarify I use
Drupal: 6.20
Views: latest dev version 6.x-3.x-dev (January 5th 2011)
CCK: 6.x-2.8
to reproduce the issue / bug / problem:
- create at least 11 dummy nodes
- create a view
- add 2 fields title and nid
- select "all items" in display section
- no filters (to get at least all 11 dummy nodes)
- verify that the view returns at least all 11 dummy nodes
- create a content type or use built in "page"
- add field of type "Node reference"
- use "Select list" as widget type
- in the "Advanced - Nodes that can be referenced (View)" section select the view created in step 1 as "View used to select the nodes:"
Now go to edit any of the nodes and you see only 10 items in the select list for the created field, even though the view returns 11 items.
Further information:
- I tried all kinds of different configurations for the view, buit the select box only shows 10 items.
- If I use a "Autocomplete text field" as widget instead, all values can be referenced.
Again thank you in advance for any ideas & thoughts!
Cheers,
cossme
Comment #3
cossme commentedfurther testing:
- update to cck-6.x-2.9 did not help
- downgrading to 6.x-3.0-alpha3 solved the problem, which again makes me believe, that a change in views produced the bug
Comment #4
thommyboy commentedjust posted a duplicate issue against views.
same problem here. it seems that views 3.x changed quite a lot regarding the setting of number of rows to display, pager and so on because some of my converted views had wrong settings for that after upgrading and it was set to a (default?) of 10 rows/pager so maybe the api-function calling the views results changed and the cck widget does not work properly any more?
Comment #5
mattcasey commentedBeen looking for a while -- using the regular "by Content Type" works, but a View will only show me one option if I use 'radio' widget, and *no* options when I use the 'select' widget.
Views 6.x-3.0-alpha3 and CCK 6.x-2.9
Comment #6
rp7 commentedsubscribing
Comment #7
raveman commentedHere http://drupal.org/node/998494#comment-4011618 there are some workarounds, works with current CCK release.
Comment #8
cossme commentedThanks raveman for the hint! Following the suggestions made there i put together a little fix module which serves my needs.
I attached the little helper module, maybe it is of help to anybody. To set it up just install the module and go to administer/settings/cossme_fix_noderef and enter the names of the views that "need to be fixed".
Cheers,
cossme
Comment #10
adamdicarlo commented@cossme, awesome! I can use your code for now.
But this issue isn't fixed in the module, right? So it shouldn't have been marked fixed.
Comment #11
adamdicarlo commentedHmm, maybe I misunderstood, and we're *SURE* this is only a Views bug and not at all a CCK bug, but until then this should be marked as a bug. I'd like the maintainers to weigh in.
Comment #12
travist commentedI was having the same problem. The way Views 3 handles items per page is a little different, so if you change the API call to views to use the base api, this will fix this problem
Here is the patch.
Comment #13
travist commentedComment #14
travist commentedUse this patch instead... it is reverse compatible.
Comment #15
travist commentedThis is a duplicate of #998494: Node Reference field always displaying 10 results when using the Advanced View option. [views-6.x-3.x]. Except his fix seems to be better, so closing this issue.