Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
I have a "Global: Text area" in the header of the view. This content is also duplicated when the autoloader kicks in and prints the "Global: Text area" above each page so there are multiple Headers.
If needed I am happy to show you a live version (via PM) or provide a list of modules etc.
Comment | File | Size | Author |
---|---|---|---|
#5 | view_in_another_view_header--2457893-5.patch | 781 bytes | Dom. |
#2 | view_in_another_view_header--2457893-2.patch | 704 bytes | Dom. |
Comments
Comment #1
cirrus3d CreditAttribution: cirrus3d commentedHaving issues with this also.
When there are field defined in the view header, the jquery autoload seems to run for all of them :)
EDIT -> From what I'm seeing, the module targets the "div.content" element of the view. This causes the module to actually target
multiple elements due to the header (and probably footer) views attachments having the same classes defined.
Since I have come across the same div.content class problem before without using the views_infinite_scroll module (many content class divs in the same view will make it difficult to target only one of them), maybe we should submit an issue in the views module - but that's only my two cents.
Comment #2
Dom. CreditAttribution: Dom. commentedHi!
I solved this issue with the following patch.
Comment #3
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedPerhaps we should backport the approach taken in #2680265: On click load more are old elements replaced with new ones instead of append. Can anyone confirm?
Comment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedI think the fix in the linked patch will be more robust.
Comment #5
Dom. CreditAttribution: Dom. as a volunteer and at ACINO commentedJust a little change for the ajax answer is sometimes inside a div wrapper. I experiment this depending on the environnement I'm running the module, but I don't know the reason for this.
Comment #6
P2790 CreditAttribution: P2790 commentedHi Dom, your most recent patch throws an error, the one previous works.
Comment #7
P2790 CreditAttribution: P2790 commentedThis patch removes the initial results of the view and replaces it with the new results.
Comment #8
timb CreditAttribution: timb commentedI encountered this problem when using a view header in my view with infinite scroll turned on. I was able to work around the issue by making my header view into a block, then inserting it into the top of the content section of the view via the block system.
Comment #9
Robert_T CreditAttribution: Robert_T as a volunteer commentedSee the patch at https://www.drupal.org/node/2736419. That solved this problem for me.
Comment #10
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedCan't apply
git apply view_in_another_view_header--2457893-5.patch
fatal: corrupt patch at line 17
patch -p1 < view_in_another_view_header--2457893-5.patch
patching file views-infinite-scroll.js
patch: **** malformed patch at line 16: };
Comment #11
nevergone CreditAttribution: nevergone commentedRelated issue added with RTBC.