hussainweb.me
  • About

An easier way to get the current node in a block plugin in Drupal 8

By hw On January 6, 2020 · 1 Comment

It is over a year since I wrote how to get the current node in a block plugin and promised to write a follow-up post with an easier method. Well, better late than never, here it is!

The previous method works, so why bother with another method? In short, it’s less code and less code is easier to maintain. Also, instead of doing all the work to get the node and set the correct cache contexts/tags, it is better to let Drupal handle that for us.

Continue Reading →

Upgrade your Drupal site to the new official Drupal 8.8 composer template

By hw On December 5, 2019 · Leave a Comment

Drupal 8.8 is out today! This will be the last (minor) release of Drupal 8 (thanks Eli-T) and we are now looking at the release of Drupal 9 soon. Among the many improvements, we’ll talk about the developments in the composer initiative in Drupal.

For years, we have been using webflo’s composer […]

Continue Reading →

Open content in new tab with an image formatter

By hw On October 6, 2019 · Leave a Comment

One of my sites has a listing of content shown as teaser. The teaser for this content type is defined to show the title, an image, and a few other fields. In the listing, the image is linked to the content so that the visitor may click on the image (or the title) to open the content. All this is easily achievable through regular Drupal site building.

Continue Reading →
Group photo of attendees of Drupal Bangalore meetup

Drupal Meetup Bangalore – July 2019

By hw On July 27, 2019 · Leave a Comment

The meetup started at 10:30 AM with a brief introduction of every attendee. We covered some of the Drupal news such as recent and upcoming events in India and internationally. We also talked about Drupal 9 and other changes in the technology.

Continue Reading →
Group photo from Drupal Bangalore Meetup September 2018

Drupal Meetup Bangalore – September 2018

By hw On September 29, 2018 · Leave a Comment

Another month, another Drupal meetup in Bangalore. This month’s meetup was held at Athenahealth office on Lavelle Road in Bangalore. Since the last month’s meetup was scheduled a week early, there was more than usual gap since the last meetup. This time, we had a full schedule and exciting sessions planned.

Continue Reading →

How to get the current node in a block plugin in Drupal 8

By hw On September 28, 2018 · 1 Comment

I was trying to build a block plugin in Drupal 8 recently. The requirement was straight-forward. I would show these blocks on node pages of a certain type. Depending on the values in that node, the block content changes.

UPDATE: I wrote a follow-up post with an easier method to get the node.

The […]

Continue Reading →
Group photo from Drupal Bangalore Meetup August 2018

Drupal Meetup Bangalore – August 2018

By hw On August 22, 2018 · 1 Comment

This month’s Drupal meetup was held at 91Springboard in JP Nagar. We held this meetup early instead of our usual last Saturday of the month due to a long weekend.

Continue Reading →
Drupal Meetup Bangalore Group Photo

Drupal Meetup Bangalore – July 2018

By hw On July 29, 2018 · Leave a Comment

July’s Drupal meetup was held at 91Springboard in Koramangala. We are back after a long time and that’s thanks to 91Springboard for providing us with the venue. Snacks in the meetup and lunch after the meetup were courtesy of Axelerant.

Continue Reading →

IBM Call for Code

By hw On July 17, 2018 · Leave a Comment

The IBM Call for Code initiative is a call to developers to use their skills to drive positive change across the world. It was created by David Clark Cause along with IBM as a founding partner. The UN Human Rights office and American Red Cross support this initiative as a charitable partner.

Continue Reading →
Polyglot Languages and Runtimes Meetup group

Polyglot runtimes meetup 24-Mar 2018

By hw On March 26, 2018 · Leave a Comment

I went to the polyglot runtimes meetup after a very long time. This is one of the more enjoyable meetups happening in Bangalore, even though Java is usually the primary subject around the topics at these meetups. This was the first meetup of 2018 and the topics were very broad and attractive.

Continue Reading →
← Previous Entries Next Entries →
  • Share
  • Categories

    • Computer Architecture
    • Drupal
    • Linux
    • Mathematics
    • Meetup
    • PHP
    • QBasic
    • Uncategorized
    • WordPress
  • Visit blogadda.com to discover Indian blogs
"Unknown Twitter error." — hussainweb

hussainweb.me

Pages

  • About

The Latest

  • What I look for in Drupal contrib modules
    It is over a year since I wrote how to get the […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2021 hussainweb.me
Platform by PageLines