Active
Project:
Views attach
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Feb 2011 at 11:04 UTC
Updated:
18 Feb 2011 at 11:01 UTC
Hi, I want to create a news view, where the first item uses another imagecache display and more text.
So I created a page view that displays 2 items with an offset of 1.
Then I created an attached view, that displays 1 item and that comes before the page and made it inherit the pager.
So I see item 1 (views attach) and items 2 and 3 (views page).
When go to the next page through my pager I see item 2 (views attach) and items 4 and 5 (views page).
I want it to show items 4, 5 and 6 on the next page...
I tried placing the attached view after the page view and changing the offset, with no luck.
Used views attach 6.x-2.2 and 6.x-2.x-dev but same result.
Comments
Comment #1
alanom commentedJust to say I'm having exactly the same problem - right down to exactly the same use case, trying to build a news archive with the first story on each page highlighted.
Is this a Views Attach module issue, or a Views module issue? I don't think you need Views Attach for the use case you describe (unless I've missed an important detail). It sounds like a standard use of an Attachment view with pager inheritance, which is all in Views core.
It seems funny that for such a conventional use case, all I can find on this issue so far is from Feb 2011... Might be worth trying rolling back Views to a previous version.
Comment #2
botrisOff topic:
I ended up not using views attach, and just theming the view at style output level.
Writing all rows and fields through php in "views-view-unformatted--contenttype.tpl.php"
Comment #3
alanom commentedCool, well, if you do need a solution using Views, I figured one out that solves my problem and might help with yours too:
http://drupal.org/node/748132#comment-4109006
(p.s. this thread could probably be marked as a duplicate of that thread - unless there's a Views Attach angle I've not picked up on)