How to Customize Block Templates and Variables


show more Customizing block templates and variables provides you with in-depth training on Web. Taught by Chaz Chumley as part of the Drupal 7: Creating and Editing Custom Themes show less
please wait ...

Customizing block templates and variables

Block templates act as a rapidable block content and views content and just like other templates can be modified to change the HTML output generated by Drupal. We will take a look at where the default block.tpl resides, what variables it outputs and best practices for overriding this template and its recommended template suggestions. Now that we are displaying dynamic content from our page, node and region templates our theme is starting to take shape.

However we take a look at our home page and our interior pages, you'll see that we still have a little more work to do before we are completely finished. It's time for us to take a look at blocks and how we can modify them to output HTML just the way we need. Let's begin by browsing to your editor, expanding the modules>block folder and copying the block.tpl.php template to your sites>all>themes>samocha>templates folder.

Now I can actually go ahead and double- click on the block.tpl and take a look at exactly what it...

Customizing block templates and variables
Video duration: 12m 14s 3h 36m Intermediate

Viewers:

Customizing block templates and variables provides you with in-depth training on Web. Taught by Chaz Chumley as part of the Drupal 7: Creating and Editing Custom Themes

Subject:
Web
Software:
Drupal
Author:
please wait ...