Drupalising a Flat Theme
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:
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:
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 elsewhere, but the problem is the same. After a little research I found the solution was to add the following to your template.php file.
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 $node exists (rather than a system page), even check the $node->type, and then render the image.
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}%{REQUEST_URI} [L,R=301]
Then in the settings.php add at the bottom...
$_SERVER['HTTPS'] = 'On';
Flush the cache and test!
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...
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...
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/2010/march/31/9-reasons-why-drupal-best-cms-seo, which starts with:
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 & Migrate, but I couldn't do this until the module files were in place... So I had to do this first.
There are various ways of doing this... and the Drupal API lists the following: