rah_external_output
Published under current TXP projects
Output external content-type snippets. The plugin, rah_external_output, is used to output external scripts with custom content types. By external we mean that you don’t have to waste sections, forms nor page templates for the scripts, and scripts (aka global output forms) can be easily used for other applications, for example Ajax calls or a custom XML page.
Image: rah_external_output
List of features
- Clean interface to write and adjust code snippets.
- Create and set content-types for the code snippets.
- Two ways to display the scripts: An automatic URL call, and an alternative tag function to display the end results.
Requirements
Rah_external_output’s minimum requirements:
- PHP 4.3.0
- Textpattern 4.x.x+
Recommended:
- PHP 5.1.2+
- Textpattern 4.0.8+
Installation and usage
The general behavior stands: paste plugin code to the plugin installer textarea and run the automatic setup. Then just activate the plugin and you are ready to use the new interface under TXP / Extensions / External output.
Attributes
The tag is <txp:rah_external_output /> and attributes for it follow. The tag is a secondary feature, and the automatic URL call method should be preferred over the tag.
name
Name of the external output you want to display.
Default name="" Example: "LoginShowToExtSiteScript"
Changelog
Version 0.5
- Added disable and activate actions to multiedit feature.
Version 0.4
- Fixed forgotten insert query escaping.
Version 0.3
- Fixed error caused by non-set
$pretext(note: TXP load order). - Set
$pretextindexes to empty: we are not on page template.
Version 0.2
- Fixed forgotten parse call.
Version 0.1
- First release