Block

DRUPALRANCH Newsletter:

(Tutorial) How to Create a Sign Up Block Using Drupal

Tips : How to Create a Sign Up Block Using Drupal

(Tutorial) Displaying Views' exposed filters in a block

Tutorial : Displaying Views' exposed filters in a block 

(Tips) Drupal - how to display block in node?

Tips : Drupal - how to display block in node?

There used to be a module that did this, but I forget what it's called, and am unsure as to its compatibility with various versions of Drupal. The easiest and most direct way to place the contents of a block in a page are using the following PHP snippet:

<?php
$block = module_invoke('menu', 'block', 'view', 26);
print $block['content'];
?>

(How To) How to insert a block into a tpl or into content programmatically with Drupal

Tips: How to insert a block into a tpl or into content programmatically with Drupal

(Tips) Give your Drupal blocks a more descriptive HTML ID attribute

Tips : Give your Drupal blocks a more descriptive HTML ID attribute

I don't know about you, but I like my HTML ID attributes and therefore my CSS selectors to be descriptive. It makes both my HTML and CSS more readable, and lets me scan a document more effectively, locating the section I need with relative ease.

If you create a custom Drupal block the system will typically output a line of HTML which might look like this:

(Tutorial) Drupal Themes and Basic Blocks

Tutorial : Drupal Themes and Basic Blocks

A theme controls the look and feel for your website. It is used to customize the general layout of all content created on your site. For each theme you have the option to add your customized logo, site name, slogan, and control what contents appear where on the theme.

(Drupal) Add a block with headines about anything you want

Drupal: Add a block with headines about anything you want



Tag Cloud