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:
Tips and snippets for Drupal
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:
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...
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:
Recently I had to redirect users to the home page, and although I can do this with the 'Rules' module, I also wanted to add something to the $_SESSION for some custom code...
After a little digging I found this: http://api.drupal.org/api/drupal/modules!user!user.api.php/function/hook_user_login/7
Similar to another post aimed at using a different page.tpl.php for a certain content type, sometimes I've needed to call in the node via an iframe or similar, so I really need a different html.tpl.php for a certain content type...
I've laid the content out in a similar way to the other post...
I'm always a little cautious when updating modules, so I tend to download and unpack the new modules into a 'workings' folder rather than the 'modules' folder... Then I make sure I have downloaded the current (now out of date) module from the server using FTP so I have all of the files that are currently working downloaded too... Then to update the module, I simply drag it's folder from my 'workings' folder on my computer, to the 'modules' folder on the server... This means that the server now has the updated files, and I have both on my computer...
For every settings page you'll need to use the Form API to allow the user to add/edit the configuration values. This is a simple example of the form and the submit function.
Adding a module configuration or settings page to the main Drupal menu is an important task and I like to add a page for each module I build...
Even if it's more of a 'help' page to explain what the module does or how to use it.
Adding one page is fairly simple....