Tag: Template.php

Avoiding the Template.php of Doom (or, Overriding Theme Functions in Modules)

Add CommentShareSource Articles16Monday, June 16, 2008By adminDrupal’s theming system offers developers and designers a flexible way to override default HTML output when specific portions of the page are rendered. Everything from the name of the currently logged in user to the HTML markup of the entire page can be customized by a plugin “theme”. Unfortunately,

Read More
Let Template.php Eat Static

Add CommentSourceBookmark/Search this post with:Delicious DeliciousDigg DiggStumbleUpon StumbleUponFacebook FacebookGoogle GoogleYahoo YahooTechnorati Technorati14Saturday, April 14, 2007By adminMy arch-nemisis is overly complex logic in template.php and page.tpl.php files. It seems to me that when a drupal codebase becomes brittle and unmaintainable, the culprit is usually going to be hundreds of conditional lines of php code in a

Read More
Let Template.php Eat Static

Add CommentSourceTutorialsBookmark/Search this post with:Delicious DeliciousDigg DiggStumbleUpon StumbleUponFacebook FacebookGoogle GoogleYahoo YahooTechnorati Technorati14Saturday, April 14, 2007By adminMy arch-nemisis is overly complex logic in template.php and page.tpl.php files. It seems to me that when a drupal codebase becomes brittle and unmaintainable, the culprit is usually going to be hundreds of conditional lines of php code in a

Read More