Drupal Documents by Shivcharan

CDN / externally hosted libraries

Submitted by shiv on Mon, 06/27/2016 - 13:51

CDN / externally hosted libraries

You might want to use JavaScript that is externally on a CDN (Content Delivery Network) ? e.g. web fonts are usually only available using an external URL; you can't host them yourself.

Theme system overview

Submitted by shiv on Wed, 04/27/2016 - 21:00

Drupal's theme system allows a theme to have nearly complete control over the appearance of the site, which includes both the markup and the CSS used to style the markup.

User variables in D7

Submitted by shiv on Mon, 01/04/2016 - 12:07

Getting node author of current viewed node

<?php $node = node_load(arg(1));
echo $node->uid; ?>

Current login User.

HTML Entities, Symbols.

Submitted by shiv on Sat, 12/26/2015 - 11:14

Some Other Entities Supported by HTML

Char Number Entity Description
? &#169; &copy; COPYRIGHT SIGN

Display Drupal 7 block anywhere

Submitted by shiv on Thu, 12/24/2015 - 15:55

Ever wanted to show a Drupal block anywhere in your theme? Use the following code snippet, take note that you will need the module of the block and its delta

Subscribe to Drupal Documents by Shivcharan

Sample blackbox block

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas non porta odio, id mattis erat.

Nam sed tincidunt eros. Donec a venenatis odio, vitae commodo sem. Vivamus ullamcorper pellentesque erat, in adipiscing tortor scelerisque sit amet. Nulla pulvinar urna magna. Vivamus a ipsum lorem. Etiam adipiscing pulvinar lorem.