Drupal

Troubleshooting PHP Include Failures on SUSE10

All PHP includes were failing in my Drupal application on a newly configured SUSE box. After verifying all the permissions, I found that the php.ini file had an extra-secure
include_path variable. Unlike most other distributions it doesn't allow relative path includes. To change that, just modify the
include_path variable like so.

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
include_path = ".:/php/includes"

The change is subtle. Notice the dot before the colon. That

Omitting Default Drupal Styles

Drupal's default styles (from misc/drupal.css) can be omitted by using a PHPTemplate theme override function.


function phptemplate_stylesheet_import($stylesheet, $media = 'all') {
if ($stylesheet != 'misc/drupal.css') {
return theme_stylesheet_import($stylesheet, $media);
}
}

Drupal Theme Standards

XHTML Markup Standards

Every New Media Logic template should share nearly identical XHTML structures. They should include each of the following elements. Certain elements may be omitted, but only if the feature is not needed. Do not omit elements in this list while replacing them with an alternately-named element that serves the same purpose.

Required Elements

div#page
This element will usually be the first child of the body tag. It should wrap the entire content of the web page, including the header, footer and content area. Exterior page margins and borders should be defined through styling of this element.

Remember to Check Input Format Permissions

I worked for some time today on a permissions problem in Drupal. I wanted to allow all administrators (a role) edit access to all page content. I first tried the taxonomy_access module, to no avail; access was denied. I then installed the nodeperm module; again no edit rights.

Finally I discovered that the problem was not the permissions system in general, but a specific permission. The content I was trying to edit was using the "Full HTML" input format, which was not available for the user in question. Drupal was forbidding access to the entire node because it was using an unsupported input format.

Building a Drupal Node Module

Design Database Table

Using Code Filter and Line Break Converter

The codefilter module creates its formatting by inserting <code> tags in the markup. These tags are not excluded from the Line Break Converter. This can be corrected. Just edit the following line in modules/filter.module.


@(]*>)@i

Change it to:


@(]*>)@i

This simply adds the <code> tag to the exclusion list.

Drupal for Corporate Sites

I came across an interesting discussion of strategies for using Drupal as a framework for a corporate web site. I've used some of these same techniques on this site.

http://contaire.com/drupalsite

Tired of Calling Your Web Designer for Simple Web Site Changes?

Experience shows that the effectiveness of web sites increases in proportion to their interactivity. Put simply, the more customers can do with your web site, the more they'll visit. We believe web sites should be more than digital brochures. A web site is an opportunity to extend and enhance your relationship with your clients and customers. Content Management Systems represent the most powerful way to turn your web site into an interactive online community.

Our Content Management System solutions allow you to easily make changes to the pages of your web site. Update your online p