Pages tagged with drupal

I'm still in the process of tagging pages that were migrated from the old site, so for now you're best off using the search engine rather than relying on the tags.

  • PHP script to log in to Drupal and save web page using cURL - The following the PHP script will log in to Drupal 6 and save a web page using cURL. It can be run from the command line (provided PHP is at /user/bin/php) via e.g. a cron job. #!/usr/bin/php <?php /** * Log in to Drupal 6 as USERNAME:PASSWORD and ...
  • Drupal 7 - Check sidebars from the node templateDrupal 7 loggingComparing and filtering dates in Drupal 7 ViewsDrupal 7 how toDrupal 7 themeingUndefined index render elementDrupal 7 gotchas / bugsDrupal 7 Anti SpamDrupal 7 modules for key/value pair fieldsDrupal ...
  • CKEditor with Drupal - Notes related to using CKEditor with Drupal. Using theme CSS in the editor To use CKEditor with your theme’s CSS, content.css in this example, edit your WYSIWYG profile and set the following: Editor CSS: Define CSS CSS Path: %b%t/css/content.cs...
  • Drupal 6 theming - Drupal 6 theming notes. Index Themes intro Variables for page.tpl.php Zen based theme New theme Styling Sub theme oddities Stylesheets Templates Per “section” styling Specify a theme’s module dependencies Th...
  • Miscellaneous Drupal 6 notes - Miscellaneous notes on Drupal 6. There are Other Drupal 6 notes on this site. Chances are that if I mention a module on this page without describing it in any way, then there’ll be mention of it in my notes on Drupal 6 modules or Drupal 7 modules. Man...
  • Drupal 6 how to - Drupal 6 how tos. Index Customise contact form External link in menu Hide menu items from anonymous users Get users in a role Send email from a module Get system variables Site domain ‘files’ directory path Site lan...
  • Drupal 6 gotchas / bugs - Notes about Drupal 6 gotchas / bugs. Index Permissions Required checkbox not required ImageCache ImageCache always scales ImageCache scaling destroys GIFs Missing ImageCache images Themed views template doesn’t ...
  • Drupal 6 modules - Notes on various Drupal 6 modules. Also see Drupal 6 custom content type for info about modules related to content types. My notes on Drupal 7 modules could also be useful because modules may not have changed significantly between releases. I don’t a...
  • Drupal 6 custom content type - Notes on custom content types in Drupal 6, mainly about the modules used to create custom content types. Index Initial setup CCK CCK fields Date ImageField Conditional Fields Link Views How to s...
  • Drupal 6 Ubercart - Notes on Drupal 6 Ubercart e-commerce / online shop setup. Index UberCart initial setup Set up the shop Subscriptions Authorize.net Issues UberCart initial setup Download Ubercart Easily Setup SSL & Authorize.net with Ub...
  • Ordering Drupal 6 events by date when you have empty / null dates - On one of my Drupal 6 sites I have a list of events, where the Event content type is provided by the Calendar module using Date for their date fields. These events need to be filtered by a date range and ordered with the most recent first. This would b...
  • Check sidebars from the node template - To read information about sidebars in a node template (node.tpl.php) in Drupal 7, you need to set the data in your theme_preprocess_page() function (in your theme’s template.php), where the sidebar info is made available by Drupal: /** * Implementati...
  • Drupal 7 logging - There are a few lines that you can add to settings.php to control which type of message are logged: error_reporting(E_ERROR | E_PARSE | E_COMPILE_ERROR | E_WARNING | E_CORE_WARNING | E_COMPILE_WARNING | E_USER_WARNING); //$conf['error_level'] = 0; // ...
  • Comparing and filtering dates in Drupal 7 Views - One of my Drupal projects was for a membership website that had different types of membership (via the (Membership Entity](https://www.drupal.org/project/membership_entity){:.weblink} module): Family membership for up to two adults (18+ years old) ...
  • Drupal 7 how to - Index Debugging errors Override a theme function View the theme registry Update an unlimited date field Render a node’s field in page.tpl.php Get the value of a node’s field Add content to region Create a basic theme Use theme CSS wi...
  • Drupal 7 themeing - Correctly get fields Use the field_get_items() function to get a node’s fields, as this respects the current language. Certainly don’t index directly into the array. The following example gets the first item of an image field (with machine name ‘fiel...
  • Undefined index render element - In Drupal 7 (I’m running version 7.26 at the moment), if you receive the following error… Notice: Undefined index: render element in theme() (line 1081 of /home/bn/brighternet/clients/mmh/dev/website/drupal/includes/theme.inc). …then you probably f...
  • Drupal 7 gotchas / bugs - Notes about Drupal 7 gotchas / bugs. Index Theming blocks inside panels cron.php 404 not found Can’t use dpm() in templates Date field rounding when editing Temporary managed files and the private filesystem Rules OR condition format Se...
  • Drupal 7 Anti Spam - There are loads of options for preventing spam on Drupal 7. Just search the web. I’m looking at four alternatives that range in complexity and cost. Best start with the simplest and move up in complexity as required. Spamicide Spamicide Provides a s...
  • Drupal 7 modules for key/value pair fields - Values Field collection TableField Double field
  • Drupal 7 View tabs - Creating tabs for a view is rather convoluted - you can’t just add a new page display and set it menu to ‘Menu tab’. You need to first create a default tab, but even that is not obvious. Lets say that you have a view with a page display that lists all...
  • Miscellaneous Drupal 7 notes - Miscellaneous notes on Drupal 7. There are Other Drupal 7 notes on this site. Chances are that if I mention a module on this page without describing it in any way, then there’ll be mention of it in my notes on Drupal 6 modules or Drupal 7 modules. Man...
  • Drush multi-site - View update status for all sites in a multi-site setup: drush @sites ups View update status for one site of a multi-site setup: drush -l example.com ups Reference: Use Drush to update multi-site setup
  • Drupal 7 modules - Notes on Drupal 7 modules. Chances are that if I mention a module on this page without describing it in any way, then there’ll be mention of it in my notes on Drupal 6 modules. Many modules haven’t changed much between Drupal versions. Check my Drupa...
  • Doxygen - Doxygen is a source file documentor, compatible with PHP documentation in phpdoc format. Unlike phpdoc (aka PhpDocumentor) it doesn’t require a ridiculous amount memory on a large code base). Generate documentation from source code Getting starte...
  • Drupal 6 - Drupal 6 themingMiscellaneous Drupal 6 notesDrupal 6 how toDrupal 6 gotchas / bugsDrupal 6 modulesDrupal 6 custom content typeDrupal 6 UbercartOrdering Drupal 6 events by date when you have empty / null dates I also have Drupal 7 notes.
  • Drush notes - Notes about Drush version 7. Index Installation Commands Multisite Running scripts Features how tos Export to a non standard destination Export all roles and their permissions Export a role and its permissions ...
  • Drush installation - Notes about installing Drush. See Installing Drush 6 and 7 on Shared Hosting Accounts With Composer for installation instructions on a shared host. Quick install with Composer This assumes that PHP is at /usr/bin/php, ~/bin is in your PATH, ~/.bash_p...

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top