Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.656.165 Times

Module Template System 5.x-1.6

  Date Added: April 25, 2013  |  Visits: 195

Module Template System

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)



Drupal 5 doesnt have a nice easy way for module developers to drop .tpl.php files in their module directories for use with modules that do a lot of output. I have no idea why. Drupal 6 has this but 5 does not. So I've created a module that allows module users to mimic the features of drupal 6 without the need to modify drupal 5 core files. It's not identical or perfect but its about as close as you can get without actually upgrading to 6 which may not be a path you can take because maybe some of your modules dont have a D6 version. Also, this system doesnt lock you into a '$content' variable like the normal drupal page template does. It allows you to create the '$content' using the $vars variable. $vars is an array that contains values that come straight from your module. There is also a custom_template.php file that allows themers to inject stuff into the $vars variable as well just like they would with drupal's template.php. Here's a small list of what this module allows you to do:Create template files in your own Module directory (these can then be overridden by files of same name in current template dir as usual)Send variable directly to a template (something not possible in d5 and I dont even think d6 does this either, though not sure on that).New custom_template.php file for themers to use just like drupal's template.phpThis module is VERY simplistic, its only like 90 lines, so it doesnt do a whole heck of a lot other than give you 2 functions called:module_get_template_content($module_name, $type, $template_name, $region = '', $vars = '')module_get_template_path($module_name, $type, $template_name, $region = '')These 2 functions are explained in detail in the Docs page.NOTE: If you use this for your modules then the module can be enabled under the phpGoogleStoreLocator group because this is actually part of a collaboration of modules I'm using to put together PGSL with. So if you drop the module in your modules dir and dont see it under 'other', thats because it's under phpGoogleStoreLocator.

Requirements: No special requirements
Platforms: PHP
Keyword: Content Custom Templatephp Drupal Files Functions Module Modules Region Template Themers Variable
Users rating: 0/10

License: Freeware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


MODULE TEMPLATE SYSTEM RELATED
Modules  -  JW Player Module for Drupal 6.x-1.6
The JW Player Module for Drupal enables you to deliver video content through your Drupal website. This module has been developed by LongTail Video, the creator of the JW Player, and allows for easy customization and embedding of the Player in the...
1.11 MB  
Modules  -  SocialToaster for Drupal 6.x-1.2
SocialToaster for Drupal is a module that allows a Drupal site to seamlessly integrate with the SocialToaster social marketing automation solution. This module provides for the following functionality:Allows site owners to recruit site users to...
20.48 KB  
Libraries  -  HCKit::Template 0.02
HCKit::Template is a Perl module with a template system for HTML construction. This module constructs an HTML page from a template. The conversion proceeds with the help of rewrite rules and data sources. Rewrite rules can be specified in the...
11.26 KB  
Modules  -  Readability Analyzer 7.x-1.0-rc2
This module is designed to help copywriters and editors develop more consistently readable content across a Drupal site. It performs five popular automated readability tests that provide a grade level equivalency of the difficulty of a page's...
10 KB  
Modules  -  Node Content Themehook 6.x-1.0
This is a simple module that adds a "node-content" theme hook to Drupal for theming the $node->content array. For example, with this module enabled, you can create a "node-content--page.tpl.php" file in your theme's folder, giving you templating...
20.48 KB  
Modules  -  PayPal Adaptive Payments API 6.x-1.x-de
Drupal API functions for PayPal X Adaptive Payments APIThe Adaptive Payments API enables you to send money in many different scenarios, from simple to complex.This module does nothing on its own. It is intended to be used by other modules to make...
30.72 KB  
Modules  -  Content Construction Kit (CCK) 1.0
The Content Construction Kit allows you create and customize fields using a web browser. The 4.7x version of CCK creates custom content types and allows you to add custom fields to them. In Drupal 5.x custom content types can be created in core,...
 
Modules  -  jEditable inline content editing 6.x-1.3
The jEditable module provides integration between Drupal's CCK module and the excellent jQuery plugin, jEditable. It is implemented as a CCK formatter, which makes inline editing possible through regular node displays, Panels, Views, or anywhere...
10 KB  
Modules  -  SunMailer Newsletter 6.x-1.6
SunMailer is an email newsletter module that aggregates content using views from the Views module. Once configured and scheduled, it can automatically send newsletters on a recurring basis without any user intervention. It originated as a project...
40.96 KB  
Modules  -  Inline and link Drupal objects (Linodef) 6.x-1.0-rc5
Linodef is an input filter for embedding content of your Drupal installation (Drupal objects) into any textarea and link to it. The tags are based exclusively on object IDs which enables a highly dynamic usage. So links won't break and the...
71.68 KB  
NEW DOWNLOADS IN SCRIPTS, MODULES
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Modules  -  TinyMCE Node Picker 6.x-2.1
This module will de discontinued and replaced with Node Picker as soon as a stable release is available.TinyMCE Node Picker provides a button in TinyMCE that displays a list of links to content. Choosing a link inserts it into the editor.The...
20.48 KB  
Modules  -  Fapilicious 5.x-1.x-de
Fapilicious is a collection of FormAPI goodies.I hope to make it a repository of reusable FormAPI trickery and short cuts. Currently it has small collection of powerful FormAPI element validators.Please submit your favorite tricks as patches so we...
10 KB  
Modules  -  Donation Goals 6.x-1.x-de
The Donation Goals module lets you create nodes of the type "Donation Goal." These goals allow you to set an amount of money you'll need for whatever you're saving up for. Visitors of the site can then donate money through PayPal. Once the target...
20.48 KB  
Modules  -  Plica Twitter 1.0.1
Plica TwitterInstallation : * Download, unzip, and install plugin dir in /wp-content/plugins * Activate * All right now
10 KB  
Modules  -  Page Array 5.x-1.x-de
The pagearray module is a small (single function) helper module that can be used whenever there is a need to load the output of any Drupal path in data form. Based on the code in index.php, Page Array bypasses the theme('page') call, instead...
10 KB