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.

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:

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 - Use tokens to display, combine or output other field values in a field

The output a certain field display by using other field values thru the use of tokens, the following modules may be useful. Each differs on the usage, applications and the kind of display and output.

Field Token Value

Available for Drupal 8

Enables to use tokens as field default values.

https://www.drupal.org/project/field_token_value

Field Default Token

Provides a field allowing the value to be set using a string containing tokens.

Cron Errors - Bootstrap plugin Not installed. The version of the Bootstrap library could not be detected. Bootstrap requires jQuery 1.7 or greater. Configure jQuery Update.

Bootstrap plugin Not installed The version of the Bootstrap library could not be detected.  Bootstrap version jQuery 1.10.2 Bootstrap requires jQuery 1.7 or greater. Configure jQuery Update.

Scenario on Drupal 7 - after running cron, you got stuck with these two Bootstrap-related errors:

Bootstrap plugin Not installed
The version of the Bootstrap library could not be detected.

Bootstrap version jQuery 1.10.2
Bootstrap requires jQuery 1.7 or greater. Configure jQuery Update.

Drupal 7 Missing tables in Newsletter Module installation - PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '.field_data_field_newsletter_template

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '.field_data_field_newsletter_template

Strange but for some reason, installing the newsletter module produces error below. All seems fine, with the module installed and enabled. However, error appears when clicking on the list from the newsletter administration backend - /admin/config/media/newsletter/lists

How to customize (manage) fields and content display for Bootstrap in Drupal 7

How to customize (manage) display for Bootstrap in Drupal 7 without Panels

While most content display modules are definitely useful for customizing your node and content displays, with or without Views integration, sometimes a more straight-forward method is to use the second option especially if you are using a Bootstrap-driven theme and coding, and customizing your template (TPL) files is not an option.

Useful Drupal 7 Content Display modules

Modules that are helpful, but might be challenging and complex to set-up for the uninitiated:

Drupal Webform: How to enable sending and receiving full HTML mail messages in Webform

If for some reason, sending messages thru Webforms for example Contact Us forms does not yield a message in HTML format but in simple text format only, the following modules may be useful:

HTML Mail

Lets you theme your messages the same way you theme the rest of your website.

ttps://www.drupal.org/project/htmlmail

Mime Mail

It permits users to receive HTML email and can be used by other modules. The mail functionality accepts an HTML message body, mime-endcodes it and sends it.

Drupal 7 Views - How to sort by Grouping Field according to Taxonomy Term ordering, whether custom or by a specific order

Drupal 7 Views - How to sort by Grouping Field according to Taxonomy Term ordering, whether custom or by a specific order

Scenario: You have a Views page or block that needs to display contents which are grouped or categorized/classified by a taxonomy term. In my case I have a list of contents (content type sponsors) that needs to be grouped and displayed in this order: Major Sponsors, Partners, Sponsors. For example in above screenshot.

Drupal 7 Views - How to show a global text message publicly but hidden for logged in users

How to show a global text message publicly but hidden for logged in users

Such a scenario might include cases when you need to show a public message intended for users to signup and register to avail restricted contents, such as:

Pages

Get reliable web hosting services

Recurring donation

Make Donation

  • Other: $

Donate now

Single donation

Make Donation

  • Other: $

Donate now