Drupal 8 and 7 Views: How to exclude current page (by ID) from a views listing or display

Drupal Views, exlude current node or group item from views result list

Views is a powerful module used in Drupal. It enables displaying content in all sorts of ways and flexible manners. Normally, you would fetch a listing or a display of contents with certain requirements, with each listed item clickable and linked to its inner page of that content. Even within the inner pages, you would normally include the same results list somewhere for easy reference, for instance as a sidebar block.

How to add Captcha to Webform contact forms

CAPTCHA for Drupal Webform contact forms

To add CAPTCHA to forms using the Webform module, for example contact forms:

Drupal 8 - How to display the First and Last Name or any custom fields as title of page

Output as fields on twig

Using below references, managed to output combined custom fields - first name and last name fields in user.html.twig template, without using hook alters or overwriting the user page template file:

How to hide/remove tabs from the user, account or profile page

Drupal user account page and user profile

In Drupal, the user page is by default templated and composed depending on whatever module has been installed and enabled to show in the user page. With Drupal, there are always many flexible ways to do stuff and achieve what you need. While there was a module, Tab Tamer, for Drupal 7 specifically for customizing the tabs on the user profile page, with Drupal 8 onwards, to date, you may need to remove or hide these tabs thru any of the following:  

Drupal Contact module menu and form not visible

Drupal Contact menu missing from main menu navigation

If you are using Drupal's core Contact module and yet the form is not showing up from the menu, check on the following:

Drupal 8 and 9: Common issues with Masonry module and solutions

Drupal Masonry module issues and errors

Masonry image effect not working, images placed vertically on top of one another

  • If on views, try to disable the Views Row Classes by going to disabling it under your Views display > Format > Masonry > Settings, then uncheck/unselect the "add views row classes"
  • Check the required Masonry libraries are installed and placed correctly, see the project page documentation and follow the exact installation of the libraries

Masonry images overlap on responsive and mobile views

PHP Parse error: syntax error, unexpected ''< /ul>'' (T_CONSTANT_ENCAPSED_STRING) in /modules/php/php.module(80) : eval()'d code on line 4

PHP Parse error:  syntax error, unexpected

Encountered numerous PHP syntax errors in Drupal 7 while checking the error log file:

Drupal 8 Paragraph module error - This entity (paragraph: 309) cannot be referenced.

Drupal 8 Paragraph module error - This entity (paragraph: 309) cannot be referenced.

When saving a content type with paragraphs block used, produces an error - This entity (paragraph: xxx) cannot be referenced.

Drupal 8 Views: How to group event node content items for example by date month

For Drupal 7, Views grouping and rewriting has been easy due to easy retrieval and controls of tokens. On D8, this gets tricky for the Date Views. If you have a set-up similar to this, the steps in the subsequent section might help:

Drupal 8 website keeps redirecting to /core/install.php with error, with an error: Fatal error: Cannot redeclare _drupal_shutdown_function_handle_exception() (previously declared in

Drupal 8 website keeps redirecting to /core/install.php with error, with an error: Fatal error: Cannot redeclare _drupal_shutdown_function_handle_exception() (previously declared in... (the following instances):

.../html/web/core/includes/bootstrap.inc

and another instance in

.../html/vendor/drupal/core/includes/bootstrap.inc

Pages

Get reliable web hosting services

Recurring donation

Make Donation

  • Other: $

Donate now

Single donation

Make Donation

  • Other: $

Donate now