Content Templates (Contemplate) 7.x-1.0-alpha2 information

Basic release information

ReleaseDownloadFile dateLast parsedFilesStringsWarnings
Content Templates (Contemplate) 7.x-1.0-alpha2contemplate-7.x-1.0-alpha2.tar.gzSat, 04/02/2011 - 14:21Sat, 04/02/2011 - 14:325533

Files parsed in this release

File locationVersion information
contemplate/contemplate.modulen/a
contemplate/contemplate.installn/a
contemplate/contemplate.infon/a
contemplate/contemplate.jsn/a
contemplate/divresizer.jsn/a

Source code warnings identified

Warning value
The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings there. At t('<p>The Content Templates (a.k.a. contemplate) module allows modification of the teaser and body fields using administrator defined templates. These templates use PHP code and all of the node object variables are available for use in the template. An example node object is displayed and it is as simple as clicking on its properties to add them to the current template.</p>'.'<p>This module was written to solve a need with the Content Construction Kit (CCK), where it had a tendency toward outputting content in a not-very-pretty way. And as such, it dovetails nicely with CCK, adding a "template" tab to CCK content-type editing pages and pre-populating the templates with CCK\'s default layout. This makes it easy to rearrange fields, output different fields for teaser and body, remove the field title headers, output fields wrapped for use with tabs.module (part of JSTools), or anything you need.</p>'.'<p>But Content Templates can actually be used on any content type and allows modification of the teaser and body properties before they go out in an RSS feed or are handed off to the theme.</p>'.'<h3>Creating templates</h3>'.'<p>Enter PHP code similar to <a href="http://drupal.org/node/11816">PHPTemplate</a>. The main difference is that you only have access to the $node object. However, PHPTemplate templates only affect output to the page. Contemplate affects display in all site themes as well as RSS feeds and search results.</p>'.'<h3 id="disk-based">Disk-based templates</h3>'.'<p>It is also possible to create disk-based template files. To do this, copy the contents of a contemplate textarea and paste it into a file called "node-<em>nodetype</em>-<em>field</em>.tpl.php" where <em>nodetype</em> is the content type and <em>field</em> is either "body", "teaser", or "rss". It is also possible to create a template called "node-<em>nodetype</em>.tpl.php" which will affect all cases, and "node.tpl.php" which will affect all node types.</p>'.'<p>Place these files into a directory called "contemplates" inside of either your "sites/all" directory or "sites/<em>yoursite</em>" depending on your setup. It is also possible to have multiple "contemplate" directories with "sites/all/contemplates" being the fallback for templates the contemplate does not find in the more specific site directory.</p>'.'<p>When adding or removing template files, you will need to visit the <a href="!link">Content Templates admin page</a> to refresh the template list cache. You do not need to do this again when making changes to the content of the templates.</p>',array('!link'=>url('admin/content/types/templates'))) in contemplate/contemplate.module on line 25. Read more at http://drupal.org/node/322732
The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings there. At t('While traversing node variables your recursion limit of %limit was hit %recursion_limit_hit times. For more information about this error goto '.l('http://drupal.org/node/230885','http://drupal.org/node/230885').'. This situation will not effect the operation of Content Template, but it may not show you all available variables on this page. This message will only appear on this page.',array('%limit'=>variable_get('contemplate_max_recursion_depth',10),'%recursion_limit_hit'=>$recursion_limit_hit)) in contemplate/contemplate.module on line 668. Read more at http://drupal.org/node/322732
The first two watchdog() parameters should be literal strings. There should be no variables, concatenation, constants or even a t() call there. At watchdog('contemplate',$message,array(),WATCHDOG_ALERT) in contemplate/contemplate.module on line 672. Read more at http://drupal.org/node/323101

Project statistics