Closed (outdated)
Project:
Twig Tweak
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2019 at 17:39 UTC
Updated:
26 Mar 2020 at 06:15 UTC
Jump to comment: Most recent
Comments
Comment #2
chi commentedThis might be a cache issue.
Try
{{ dd(drupal_view_result('profil_page_contenu', 'block_2'))) }}Also
drush ev "echo count(views_get_view_result('profil_page_contenu', 'block_2'));"Comment #3
zenimagine commented@Chi This is what the page displays :
Comment #4
zenimagine commented@Chi do you know why he stops at 10 ?
Comment #5
chi commenteddrupal_view_resultis just a wrapper around views_get_view_result. Did you try to count results with that function?Comment #6
zenimagine commented@Chi I do not know how to do this
Comment #7
chi commentedYou can run Drush command I posted in #2.
Comment #8
zenimagine commented@Chi It shows 10 in the terminal
Comment #9
chi commentedThat means your issue is not related to Twig.
Comment #10
zenimagine commented@Chi It's very weird because there is no pagination you all my sight blocks to 10. What can it come from ?
Comment #11
chi commentedI have no idea. Custom hooks, third party modules, patches whatever. You need to turn them off one by one to isolate the problem.
Comment #12
zenimagine commentedok thank you
Comment #13
zenimagine commented@Chi Hi I just did some tests and the problem only appears when it is a view based on a search index.
I'm using Search API 1.14 and Search API Solr 3.7
Comment #14
zenimagine commented@Chi Is this a problem for Twig Tweak or Search API or Solr ?
Comment #15
chi commentedIf
drush ev "echo count(views_get_view_result('profil_page_contenu', 'block_2'));"returns wrong results then it's not Twig Tweak issue.Comment #16
chi commented