Trent Wyman


Top Navigation

Drupal Resources

1) Backup & Copy site files & database to a Local Site and/or Staging Server, including .htaccess, robots.txt, sites directory (settings.php), contrib modules, custom theme, & files directory. Setup a "Legacy" version of the site to...

To increase the default php memory limit and max file upload size in Drupal 6, the following methods can be performed:

If you have access to your php.ini file add this script (recommended):

In your php.ini file...

The following PHP function checks to see if a particular taxonomy id (term name) exists:

<?php
if(!empty($node->taxonomy) && $node->taxonomy[6]-->name == 'Term-name-here'){
print 'Term exists';
}else{...

Here is an example theme.info file to reference formatting for declaring page regions and style sheets custom to that theme.
------------------------------------------------------------------------------------------

; $Id: theme-name...

Here is a list of available variables within page.tpl for Drupal 6:

General utility variables:
$base_path: The base URL path of the Drupal installation. At the very least, this will always default to /.
$css: An array...

The following PHP script can be used to check if the Drupal home page is TRUE:

<?php
if($is_front){
print 'This is the front page';
else{
print 'This is an interior page';
}
?>

On Saturday, September 19th 2009 at Kennesaw State University (Room #SO3031), Trent Wyman will be presenting a Drupalcamp session titled: "Theming Drupal Menus".

The "Theming Drupal Menus" session is intended for...

Basic PHP date() script:

<?php print date('Y'); ?>

--------------------------------------------------------

Simple copyright statement using year ('Y') date format:

<?php echo...

Below are the scripts I use to embed a Flash file into a web page or Drupal node tpl file using SWF Object. Examples include using...