Drupal Blog

Who uses Drupal?

Why Drupal?

Drupal is the leading open source content management system for developing sophisticated, flexible and robust websites, social media networks and applications.

Drupal 8: How to include the node id and a class in body based on the , depending on the current path

While working on a custom bootstrap subtheme in Drupal, I needed to include specific classes in the body tag.

There are two different cases that I needed to take into consideration, one for nodes and one for custom paths generated by e.g. from Views or Taxonomy.

In the first case, I needed the node id to be included as a class, and on the second I needed a class name that was based on the path.

To achieve this, I needed to edit two different files under my subtheme category. You will need to replace themename with the actual name of your theme.

blog: 

Drupal 7: Views pager not showing!

A weird issues came up after upgrading from Views version 7.x-3.7 to 7.x-3.8. The pager was missing from all views.
After making sure that there are enough results to bring up a pager, and that the pager ID was unique for each view that shows up in the same page, we noticed the one thing that all views had in common: They all used Global: PHP fields.

Drupal 7: Addressfield - Change the order of the inner fields

A request that often comes up is to change the order of the Addressfield fields.
In this example, we are creating a custom module in order to position the Country field at the bottom.
It is a very simple function, and the other elements can be positioned in a similar fashion.

Drupal 7: Heartbeat comment messages show up twice!

Heartbeat messages were showing up nicely on a project we have been working on lately, bringing up all the member activities including changing the user account details, adding or editing nodes and commenting on nodes.
Everything was working fine right out of the box - except one minor inconvenience that we noticed: all comments were showing up twice in the heartbeat stream.

Recent Comments

Forward by Dries Buytaert, Founder and Project Lead, Drupal; CTO Acquia.

Order now from:

Managing Expectations Podcast with DrupalEasy

Author Interview http://tinyurl.com/8a8nxno

We provide the most Shiny Drupal Bits & Pixels

Since Drupal 4.x

© 2014 Konordo Limited
Drupal Services provider.
All rights reserved.

Reg Nr. 12301661F
VAT Nr. CY10301661D

M. Director: Konstantin Ordoulidis

 

Get in touch

  • Konordo Limited
  • Omirou 10, 3095, Limassol, Cyprus
  • +4917698807355
  • info [at] konordo [dot] com