We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged


It's obviously a good idea to re-use a views block in several places without the need to create display copies only because the desired number of items is different. There's a good chance this patch makes it into Drupal core 8.9: https://www.drupal.org/project/drupal/issues/3083379 (Allowing 1, 2, 3, 4, 5, 6, 10, 12, 20, 24, 40, 48 items per block).


There is often more than one way of solving a problem in Drupal, and this question is the same. It depends on your particular needs which approach you might want to implement. One option is to make a new View where users would read the articles, they wouldn't be taken to the actual article node page. You create a new Views Page Display, with a different ...


the function names dont look correct here for the latest version of D8 should be $view->initPager(); $view->setItemsPerPage(10); // or any other integer value


You can accomplish this with the contrib module Flippy. It will allow you to add pagers for specific content types. Hope it helps. Flippy is an ultra-simple module that generates previous/next pagers for content types. On the Node type administration screen, you can turn Flippy on or off for each content type. It'll generate a unique pager for each ...

Top 50 recent answers are included