Skip to main content

Video

Learning Bits: Drupal Attributes, title_prefix, and title_suffix

by Mario Hernandez
September 8, 2020

Drupal attributes are an object Drupal uses to pass HTML attributes to a page’s markup. They can be very useful to Drupal even if they are not always used by developers. For this reason, it is important that Drupal attributes are available on templates we work on, even if we are writing our own markup.

Other very useful utilities Drupal provides on most templates is title_prefix and title_suffix. These two variables allow contrib and custom modules to add extra functionality to your nodes in the way of contextual links. In fact, the Contextual Links module is the most popular use case for being able to edit content inline through title_prefix and title_suffix.

Mediacurrent Learning Bits

Join us every week for new tutorials on Front-End Development, Back-End Development, Drupal, Accessibility, and more! Subscribe to our YouTube channel to get alerts for new tutorials.

Interested in Training?

Learn more about Mediacurrent's training services and how we can help your team level up. Our team of Drupal and open source experts who partner with some of the world's most recognized brands can help your entire team drive measurable success through quality training.

Meet team member, Mario Hernandez

Mario is the Head of Learning at Mediacurrent with over 10 years of public speaking and training experience. He is a regular speaker and trainer at tech conferences including Drupal Camps in Los Angeles, San Diego, San Francisco, Washington DC, and others.  Mario is a co-host of the Mediacurrent podcast where guest speakers discuss Open Source solutions.

In addition to being the Head of Learning, Mario is a Senior Front-End Developer working on some of the world’s most popular brands. Mario has vast experience in all things Front End as well as Drupal.  He developed the very successful Component Based Development training workshop which has been conducted at DrupalCons throughout America and Europe.. Mario's strengths are training clients and their development teams through custom-tailored curriculums.

Learn more about Mario >