Deutsch (DE-CH-AT)French (Fr)English (United Kingdom)
Home Products File2Message
File2Message Print option in slimbox / lytebox? (info)

File2Message is a simple Joomla! content plugin, which puts the content of a text file into the Joomla! message queues.

backend-form1backend-form2backend-pluginfrontend-form

We use the Plugin File2Message to integrate our CGI Perl form processor. The perl script writes it's validation messages to a file and redirects the browser back to the Joomla! form.

Download
File2Message Version 1.0.0

Plugin Parameters

In the plugin manager you can define the following parameters:

  • Message file: Path to the message file starting from the JOOMLA! root directory.
  • Message type: Message, Notice or Error.
  • Delete file: Should the message file be deleted after processing?

Embedding the plugin into a page

The plugin may be embedded very simply into the content:

{file2message}

The plugin paramters maybe overwritten in the content (we decided to not allow this for the file parameter due to security reasons):

{file2message type=message delete=0}

  • Don't worry, be happy!

{file2message type=notice}

  • Please specify all requested information

{file2message type=error}

  • Database not available

Attention

Messages seem not to work correctly when the cache is enabled. This is a general Joomla! 1.5 problem and not related to this plugin. You may disable the page cache for single pages by modifying the file plugins/system/cache.php:

 
if (!$user->get('aid') && $_SERVER['REQUEST_METHOD'] == 'GET') {
$this->_cache->setCaching(true);
}

////////////////////////////////////////////////////////////////////
// avoid form caching
$itemid = JRequest::getInt( 'Itemid' );
if ($itemid == 66 or $itemid == 84 or $itemid == 95) {
$this->_cache->setCaching(false);
}
////////////////////////////////////////////////////////////////////

$data = $this->_cache->get();