Drupal 7
How you build a Drupal site will greatly depend on your personal preference or the preference of your boss/client.
A favourite debate between other developers and myself is if it's better to:
start with a pre-made theme and then fight it to remove all of the things you don't want it to do, or…
Sometimes, especially if building a custom theme... or if you've started with a flat HTML/CSS/JS page and turned it into a Drupal theme.... the MetaTag data doesn't display in the <head> area. This might be because I've used a node as the home page, or maybe something is causing a problem…
Once the site files have been uploaded either by the 'one click install', or by the manual approach, you're left with the default theme and settings. I chose 'Standard' set-up, so here are the next steps...
I often want to pull something out onto a page, from the node, but into a region not covered in node.tpl.php... Lets say for example, a page has a 'banner' sat below the header and under the banner is another region, and below that is the normal content area... We can use the page.tpl.php, check if…
There are various server setups and variations so there will not be one solution that fits all cases... However, this worked for me.
Put this in the .htaccess file just before RewriteCond %{REQUEST_FILENAME} !-f about line 117...
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{…
This can often be tricky as you've probably done a variety of things (like tick the HTML box of the SMTP module), and it's still not working...
Steve Burge from OSTraining has written a great walkthrough of how to use Mimemail and Mailsystem to achieve the desired results...
http://www.ostraining…
This is one of those annoying issues you come across from time to time... You know the type... You know there's an issue, but can't quite place it...
In this case, I needed to use the SMTP module as the normal site emails were getting caught by the company spam filters... so appeared not to be…
I often get asked this question.... so here is my answer....
Most have been pulled from other sites, and links to those sites have been included... The last section are my own personal thoughts...
Here are some ‘points’ with explanations I’ve pulled from, http://www.volacci.com/blog/ben-finklea/…
I recently had an issue with a site, where (to cut a long story short), I had lost all of the the files on the hosting account.. core, modules, themes, etc...So I had to start a fresh with new install of Drupal.
I had the files for the theme, but not the modules... I normally use Backup &…
There are various ways of doing this... and the Drupal API lists the following:
drupal_add_js('misc/collapse.js');
drupal_add_js('misc/collapse.js', 'file');
drupal_add_js('jQuery(document).ready(function () { alert("Hello!"); });', 'inline');
drupal_add_js('jQuery(document).ready(function () {…