Drupal

Lynda.com Essential Drupal Video Screencasts

The lovely people at Lynda.com have just released a set of over 30 instructional videos on how to use drupal from first principals right the way through to restoring your drupal site from a database backup. There is something for everyone here.

Visit Lynda.com Drupal Tutorials

 

Adding audio to a drupal site a la Podcast style

The most useful porject presently available with Drupal to introduce Audio to your site seems to indeed be the Audio module.

It is reasonably well documented but you may find these links helpful since it is a complex bundle of modules

Using jquery, cck and

This screencast is a superb mashup using CCK, Filefield and jquery and jquery media module to host video on a drupal web site.

Difference between variable placeholders in Drupal

I ran into a problem using the t() function where my url generated using the l() function was coming through as

<a href="http://www.bbc.co.uk">BBC</a>
I discovered that it was because I was using the wrong placeholder.

Placeholders in Drupal t() function

There are three special varaible placeholders in Drupal which are used in the t() function. They are intended to signal different types of variables to be replaced in translation string.

SEO for drupal - validating your robots.txt file

It is easily overlooked but it is essential to get your robots.txt file validated. You can use an online validation service.

Dumping all the variables available in phpinfo in Drupal

If you want to inspect what php variables you have available to call in a drupal site just paste

<?php print phpinfo(); ?>

You will need to set the filter format to php.

When you view the page you will have a dump of the php variables.

Google indexing tips

Google page title

Google indexes 63 characters in the page title they use on the search results. Other search engines use longer titles.

Google meta description

Google indexes 155 characters from your meta description.

 

Removing the preview button from a form in drupal

If you want to remove the preview button from a form in your own custom module use the following hook_form_alter method to remove the preview element from the form array.

function mymodulename_form_alter($form_id, &$form) {

    if(($form_id=="mycontenttype_node_form")||($form_id=="comment_form")) {
      unset ($form['preview']);
    }
}

Access denied due to conflicting node arbitration modules in drupal

I sometimes come accross this issue where an access denied is presented where it shouldn't. Often the cause is the node_access table containing information from two or more modules trying to arbitrate node access. The way to overcome this is to reset the node access table (you will lose any settings) back to the default.

This can be done by visiting /admin/content/node-settings and hitting the Rebuild Permissions button.

Building scalable High Availability Drupal Websites with Drupal

There is a lot more to running a web site than just downloading Drupal, throwing a few modules up, turning them on and hoping that your site will cope with high traffic levels. This policy will come back to bite you if you don't put in place measures before your next big thing web site becomes the next myspace.com.

I have been reading around the subject and have gathered together some useful references.

Syndicate content