This project is not covered by Drupal’s security advisory policy.
A simple module which allows upload of a template file (Drupal tpl file) which can then be used to process nodes on your site for displaying/ outputting as static files (eg. XML files).
The output is file cached in a similar way to how imagecache handles image processing.
- Simple example template file:
-
<?xml version="1.0" encoding="UTF-8"?> <example> <title><?php print check_plain($node->title) ?></title> <author><?php print check_plain($node->name) ?></author> <body><?php print check_markup($node->body) ?></body> </example>
- Advanced usage examples:
-
As PHP can be very flexible with looping through node content, multiple entry CCK fields can be very useful for holding and maintaining data. It's also very easy to reference uploaded files when using Filefield and Imagefield. Therefore some suggestions for usage are;
- Subtitles/ timed text XML files
- XML config files for SWF players
- CSV output for importing into Excel/ Open Office
- Text files containing downloadable/ printable forms
-
Also provided is the functionality to add 'pre' and/ or 'post' processing which extends the functionality further, e.g. by then allowing you to manually (these are example usages);
- Remove specified characters/ words from the input
- Validate a generated XML file with an XSD or DTD
- Convert generated files into pdf or xls formats
This module does not come with any example templates or pre/post processing files.
WARNING: This module allows for PHP to be evaluated in the template files therefore only give administrative access to trusted users. Note that this behaviour is no different to normal Drupal templates you will have in your theme folder, e.g. page.tpl.php and node.tpl.php - the only difference is that this module allows editing the templates from within in the UI.
Project information
- Project categories: Content display, Import and export
- Created by pobster on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
