Views query alter in Drupal 8

admin, 2 years 10 months ago

hook_views_query_alter(ViewExecutable $view, QueryPluginBase $query)

You must implement this hook inside It won't work inside my_module.module file.

- vladm

Creating Next/Previous node pager using Views in Drupal 8

vishalp, 3 years 3 weeks ago

Looking for a way to implement next/previous node pager in Drupal 8? There are some modules available like Pager for Content type which allows you to create next previous pager for nodes with some configurations.

[D8]: Adding a class to more link of a view

vishalp, 4 years 3 months ago

In case you are looking for adding a css class to more link(displayed in footer) of a view in drupal 8, you can do it by implementing template_preprocess_views_view() in your theme under THEMENAME.theme file as shown below:

[D8]: Setting default logo path in a theme

vishalp, 4 years 4 months ago

If a custom logo is not specified, Drupal will search in the active theme for a default logo image file. This has been changed from a PNG file to a SVG file.

Planning to develop responsive theme using Drupal 7 & Bootstrap 3?

vishalp, 4 years 8 months ago

If you are planning to develop a responsive theme using Drupal 7, then this guide may help you build the theme quickly.

Drupal best practices

vishalp, 4 years 8 months ago

If you are going to invest the time to set up a CMS, then you should protect your investment by following some simple best practices.

Key Drupal SEO Modules To Get Installed

vishalp, 4 years 8 months ago

Drupal has several modules that every site should install. That is, if you're looking to take advantage of what Drupal already has to offer, and if you care to get found online 'organically' through someone typing words other than your company's name.

Drupal 7 themes directory structure

vishalp, 4 years 8 months ago

In this article we will see how to place template files in manageable way, so that template files can be found easily.