Where is the control now for setting the number of items in an attachment?
This used to be set in "items to display" but I don't see anything now that does it, and the attachment repeat itself per the number of view items.
And although "inherit pager" and "render pager" are set to NO, the pager still shows up within
| Comment | File | Size | Author |
|---|---|---|---|
| #32 | 776830-render-pager-got-lost.patch | 2.88 KB | merlinofchaos |
| #29 | 776830-fix-use-pager-no-whitespace.patch | 8.31 KB | merlinofchaos |
| #20 | 776830-fix-use-pager-no-whitespace.patch | 5.14 KB | Bevan |
| #20 | 776830-fix-use-pager-no-whitespace-svn.patch | 4.15 KB | Bevan |
| #12 | 776830-fix-use-pager.patch | 6.69 KB | merlinofchaos |
Comments
Comment #1
keva commentedshould have said: ... the pager still shows up within
<div class="attachments...">Comment #2
keva commentedComment #3
entrigan commentedconfirming the bug (or at least my inability to figure it out)
Comment #4
entrigan commentedIn the meantime I have been getting around this by
attaching views using a views_customfield php field to call views_embed_view(...).Edit: Err nm, to work around this I am using php code in the view header. I was using php field to do something else.
Comment #5
merlinofchaos commentedUpgrading to critical; this is a side effect of the way pagers have changed and attachments need to update to match.
There might be another issue for this already, I'm not sure.
Comment #6
gsquirrelIn case it helps anyone else I was able to edit the pager settings by going to the url directly, it is only the interface where it does not show up, the setting must still exist. So I went to http://www.example.com/admin/build/views/nojs/display/map/attachment_1/p... and was able to adjust the pager setting for my attachment view.
Comment #7
chrisrikli commentedThank you for posting that. Saved my bacon. :)
Comment #8
hefox commentedSetting 'use pager' => TRUE in plugin.inc makes the item show up, but I suspect that isn't the full solution.
Comment #9
merlinofchaos commentedYeah. I still need to figure out the proper solution to this one.
Comment #10
Starminder commentedsubscribe ...I'll buy ya a beer when ya fix it :)
Comment #11
dawehnerAdds a new flag "always avaiblible"
When use pager is not set, only "always avaiblible" pagers are selectable.
Comment #12
merlinofchaos commentedLet's try this patch instead; I had problems with inheriting from the default display. We have to change things a little bit from the older ways of doing things.
Comment #13
David Goode commentedSorry for the dupe; I tested this for the feed display handler and it worked as expected for unlimited and limited #s of items. Also subscribing.
Thanks,
David
Comment #14
keva commented(EDITED)
If anyone else has a problem patching:this patch appears to be for views-6.x-3.x-dev.tar.gz August 17, 2010 - 20:22Comment #15
merlinofchaos commentedIt applies to latest CVS (which is what the 3.x-dev should be) with no offsets at all. Maybe the -dev you have isn't the one you think it is?
Comment #16
keva commentedThe problem is that I really don't understand how the devs are organized. I looked at the timestamp of your patch comment, and the time of the dev on the project page. I'll apply patches to those in CVS only now.
the pre-edited comment was asking what the patch errors meant. When I figured it out, I changed the comment in case other people did what I did...sort of like "I figured it out but can't delete the comment, so Views maintainers: please don't waste your time on this!" (and thanks for all the time you do spend making Views so valuable)
Comment #17
merlinofchaos commentedOh. I only read the pre-edited comment (I read most of my issue responses by mail and they tend not to get the edits).
I can't think of why the Aug 18 -dev is any different. I'm on the tip of the 3.x branch. No changes have been committed since I rolled that patch. I am confused.
Comment #18
keva commentedI just unpacked both and they do look the same. It's possible I mixed up one with an earlier dev.
Comment #19
Ellen commentedsubscribe ..
Comment #20
Bevan commentedThe patch in comment #12 didn't quite apply cleanly to 6.x-3.x-dev from 2010-04-30 (datestamp=1272586770), however the rejections were only for chunks that removed extraneous whitespace. I've attached a version of the patch from #12 that I modified and applied cleanly, as well as the resulting diff from the SVN repo for the respective deployment of views.
2 minor bugs were found in the UI:
Steps to reproduce;
This will probably be solved by the following issue;
Steps to reproduce;
Perhaps the "Items to display" setting should be merged in with the "Use pager" setting, or moved to the "Attachment settings" group of settings? Or maybe this is intentional for some reason I am not aware of?
With these fixed I would call this RTBC. More testing would be ideal, but it is ready for wider testing and certainly fixes more than it is likely to break.
Comment #21
rjbrown99 commentedFor what it's worth, this also impacts the "Feeds" display. I modified the issue title appropriately. I'm on Views 3 -dev as of 8/1/10. I tested both with #12 (which required me to manually fix the whitespace) and with #20 (specifically the -svn patch). Feedback is the same for both patches.
Here's what works:
- I now see the "Items to display" dialog box
- If I choose the option "Display a specified number of items" and input a number, it works properly and I see that number of results in the output.
Here's what does not work:
- If I choose the option "Display all items", offset 0, it only displays 10 items.
Can someone else try with "Display all items" and see what you get? Thanks.
Comment #22
chuckbar77 commentedsubscribing
Comment #23
aidanlis commentedsubscribe
Comment #24
aidanlis commentedConfirming the patch in #20 works for me.
Comment #25
dawehnerUpdate to old status
Comment #26
merlinofchaos commentedI think needs work was a mistake in #20.
Comment #27
Bevan commentedI intentionally set it to "needs work". However that patch needs both work and review.
Comment #28
Remon commentedsubscribe
Comment #29
merlinofchaos commentedI don't think the first problem with inheritance is fixable.
The second one actually works as intended. It advances to the settings if and only if you actually make a change to the pager type. That's the way all of the pluggable settings work.
Committed the patch attached, with some cleanup to inherit and render pager as well.
Comment #30
akadimi commentedHi,
using the last dev version, I have an attachment with "render pager:no" and "inherit pager:yes" but the pager is still being rendered twice, one for the original block and one for the attachment. How to get rid of the attachment pager while still being able to control both displays with the same pager?
Comment #31
attiks commentedSame problem exist in D7 version, patch didn't apply cleanly but appears to work anyways ;p
Comment #32
merlinofchaos commentedIt seems the display render_pager() functionality actually got lost in the transition to Views 3.
While investigating this, I uncovered that we also lost the ability for exposed input to get to the pager, like it was supposed to. I am SURE I have seen bug reports about that. They should be directed here as this patch will fix that too.
Comment #33
merlinofchaos commentedCommitted.