drupal Archive

Drupal 7: Get the tpl.php name of a certain View

I was trying to theme a certain view in a D7 site since I couldn’t get Views to do what I needed without using my own PHP and jQuery.

It took me ages to track down what name to use in the tpl file for my theme. The easiest way of finding out what tpl.php name to use, either for a single view, type of view (e.g. unformatted list) or all views is to go into:

Structure > View > Edit your view

Then under Advanced of the right you will find a “Theme: Information” link that gives you extensive information on the files in use. Enjoy.

Tags:

Updating Drupal 7 Core using Drush

If you want to save the hassle of upgrading Drupal 7 core from say, 7.4 to 7.7, you can install Drush and then use it from SSH to back up your site and then update core with the follwoing command:drush update
Just make sure you’re in the directory of the Drupal installation you want to update.

Tags: , ,

Drupal Webform – getting Date field using UK format

I’m working on a major project with Drupal – bigger than any I have done before so there’s obviously a bit of a learning curve to go through.

The latest problem was using the excellent Webform module. Although it works perfectly in my Drupal 7 install, all the dates are in the US mm/dd/yyyy format and I want the UK dd/mm/yyyy format.

All you have to do is go to Admin > Configuration > Date and Time and you can choose from a list of date and time formats to suit your needs.

Simples