libreccm-legacy/ccm-core/web/assets/xinha/plugins/InsertSnippet
pb b65fab6463 Update Xinha auf die aktuelle Version 0.96.
git-svn-id: https://svn.libreccm.org/ccm/trunk@1403 8810af33-2d31-482b-a856-94f89814c4df
2011-12-28 01:01:18 +00:00
..
img Xinha an die korrekte Stelle verschoben (ccm-cms -> ccm-core) 2009-05-11 11:25:18 +00:00
lang Xinha an die korrekte Stelle verschoben (ccm-cms -> ccm-core) 2009-05-11 11:25:18 +00:00
popups Xinha an die korrekte Stelle verschoben (ccm-cms -> ccm-core) 2009-05-11 11:25:18 +00:00
InsertSnippet.css Xinha an die korrekte Stelle verschoben (ccm-cms -> ccm-core) 2009-05-11 11:25:18 +00:00
InsertSnippet.js Update Xinha auf die aktuelle Version 0.96. 2011-12-28 01:01:18 +00:00
demosnippets.js Update Xinha auf die aktuelle Version 0.96. 2011-12-28 01:01:18 +00:00
readme.html Update Xinha auf die aktuelle Version 0.96. 2011-12-28 01:01:18 +00:00
snippets.html Xinha an die korrekte Stelle verschoben (ccm-cms -> ccm-core) 2009-05-11 11:25:18 +00:00
snippets.php Xinha an die korrekte Stelle verschoben (ccm-cms -> ccm-core) 2009-05-11 11:25:18 +00:00

readme.html

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>InsertSnippet for Xinha</title>
  
<style type="text/css">
  body { font-family: sans-serif; }
  pre {border: dotted grey thin; background-color:LightYellow;padding:10px }
  p { width:500px }
  </style>
</head>

<body >
<h1>InsertSnippet for Xinha</h1>
<p>Insert HTML fragments in your document.

</p>
<h2>Usage</h2>
<p>
In order to use your own snippets you have to add at least one parameter to your xinha_config:
</p>
<pre>
xinha_config.InsertSnippet.snippets = Xinha.getPluginDir('InsertSnippet') + "/snippets.php";
</pre>
<p>
The path above indicates the use of the provided backend. This parses a file that contains the snippets and 
should have the following format:
</p>
<pre>
&lt;!--Snippet ID--&gt;
Snippet content
&lt;!--/Snippet ID--&gt;
...and so on
</pre>
<p>
You can use the snippets.html in the plugin folder or tell the backend where to find the file like this
</p>
<pre>
with (xinha_config.InsertSnippet)
{
	&lt;?php

	// define backend configuration for the plugin
	$backend_data['snippets_file'] = '/file/containing/snippets.html';
	require_once '../contrib/php-xinha.php';
	xinha_pass_to_php_backend($backend_data);
    
	?&gt;
}
</pre>

<p style="font-size:80%">Raimund Meyer (xinha@raimundmeyer.de)</p>
</body>
</html>