phpGW --> eGW

This commit is contained in:
Ralf Becker 2003-10-26 19:25:13 +00:00
parent 5153b0d8e3
commit 07da6bbec9
2 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
<!-- $Id$ --> <!-- $Id$ -->
<html> <html>
<head> <head>
<title>phpGroupware: eTemplates - Templates and Dialog-Editor</title> <title>eGroupWare: eTemplates - Templates and Dialog-Editor</title>
<STYLE type="text/css"> <STYLE type="text/css">
<!-- <!--
pre { font-family: monospace; background-color: #e0e0e0; padding: 2mm; border-width: thin; border-style: solid; border-color: black; white-space: pre; } pre { font-family: monospace; background-color: #e0e0e0; padding: 2mm; border-width: thin; border-style: solid; border-color: black; white-space: pre; }
@ -13,7 +13,7 @@ body { background-color: white; color: black; }
</STYLE> </STYLE>
</head> </head>
<body> <body>
<h1>eTemplate - Templates and Dialog-Editor for phpGroupware</h1> <h1>eTemplate - Templates and Dialog-Editor for eGroupWare</h1>
<h3>by Ralf Becker <a href="#" onClick="document.location='mai'+'lto:RalfBecker'+unescape('%40')+'outdoor-training'+unescape('%2E')+'de'; return false;">RalfBecker AT outdoor-training DOT de</a></h3> <h3>by Ralf Becker <a href="#" onClick="document.location='mai'+'lto:RalfBecker'+unescape('%40')+'outdoor-training'+unescape('%2E')+'de'; return false;">RalfBecker AT outdoor-training DOT de</a></h3>
<p>A developers tutorial how to write an application with the new eTemplates.<br> <p>A developers tutorial how to write an application with the new eTemplates.<br>
It is also an introduction how to write a phpgw- and setup(3)-compatible app.</p> It is also an introduction how to write a phpgw- and setup(3)-compatible app.</p>
@ -53,7 +53,7 @@ to edit records and search for them.</p>
enable your account for using the app (Admin/User account: check eTemplates).</p> enable your account for using the app (Admin/User account: check eTemplates).</p>
<h2>1. Creating a new phpgw app directory</h2> <h2>1. Creating a new phpgw app directory</h2>
<p>Each app need a name, eg. 'et_media'. We now need to create the following directory structur above the phpgroupware dir: <p>Each app need a name, eg. 'et_media'. We now need to create the following directory structur above the eGroupWare dir:
<pre> <pre>
et_media <span>that has to be identical to our app-name</span> et_media <span>that has to be identical to our app-name</span>
+ setup <span>files necessary for the setup Programm, give the webserver write-permission to that dir</span> + setup <span>files necessary for the setup Programm, give the webserver write-permission to that dir</span>
@ -75,7 +75,7 @@ et_media <span>that has to be identical to our app-name</span>
$setup_info['et_media']['enable'] = 1; $setup_info['et_media']['enable'] = 1;
<span>/* Dependencies for this app to work */</span> <span>/* Dependencies for this app to work */</span>
setup_info['et_media']['depends'][] = array( $setup_info['et_media']['depends'][] = array(
'appname' => 'phpgwapi', 'appname' => 'phpgwapi',
'versions' => Array('0.9.14','0.9.15','0.9.16') 'versions' => Array('0.9.14','0.9.15','0.9.16')
); );
@ -144,8 +144,8 @@ Create the file <b>/et_media/index.php</b> with the following content:</p>
<pre> <pre>
&lt;?php &lt;?php
<span>/**************************************************************************\ <span>/**************************************************************************\
* phpGroupWare - eTemplates - Tutoria Example - a simple MediaDB * * eGroupWare - eTemplates - Tutoria Example - a simple MediaDB *
* http://www.phpgroupware.org * * http://www.eGroupWare.org *
* Written by Ralf Becker &lt;RalfBecker AT outdoor-training DOT de> * * Written by Ralf Becker &lt;RalfBecker AT outdoor-training DOT de> *
* -------------------------------------------- * * -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it * * This program is free software; you can redistribute it and/or modify it *
@ -419,7 +419,7 @@ There are 2 possibilties to create it automaticaly:</p>
That will omitt our own messages in the class!!! That will omitt our own messages in the class!!!
<li>We use a function in our class to call etemplate::writeLangFile('et_media','en',$extra) and can so supply some extra strings.<br> <li>We use a function in our class to call etemplate::writeLangFile('et_media','en',$extra) and can so supply some extra strings.<br>
If we add this function to the public_functions-array in our class, we can just call this function via the browser:<br> If we add this function to the public_functions-array in our class, we can just call this function via the browser:<br>
http://ourDomain/phpgroupware/index.php?menuaction=et_media.et_media.writeLangFile (the errormsg can be savely ignored)<br> http://ourDomain/eGroupWare/index.php?menuaction=et_media.et_media.writeLangFile (the errormsg can be savely ignored)<br>
This is the function (don't forget to add it like the edit-function to public_functions): This is the function (don't forget to add it like the edit-function to public_functions):
</ol> </ol>
<p>Anyway we have to use the TranslationTools to find and write the lang()-messages of our code!</p> <p>Anyway we have to use the TranslationTools to find and write the lang()-messages of our code!</p>

View File

@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html> <html>
<head> <head>
<title>phpGroupware: eTemplate-Referenz</title> <title>eGroupWare: eTemplate-Referenz</title>
<!-- $Id$ --> <!-- $Id$ -->
<STYLE type="text/css"> <STYLE type="text/css">
<!-- <!--
@ -13,7 +13,7 @@ body { background-color: white; color: black; }
</STYLE> </STYLE>
</head> </head>
<body> <body>
<h1>eTemplate-Referenz - Templates and Dialog-Editor for phpGroupware</h1> <h1>eTemplate-Referenz - Templates and Dialog-Editor for eGroupWare</h1>
<h3>by Ralf Becker <a href="#" onClick="document.location='mai'+'lto:RalfBecker'+unescape('%40')+'outdoor-training'+unescape('%2E')+'de'; return false;">RalfBecker AT outdoor-training DOT de</a></h3> <h3>by Ralf Becker <a href="#" onClick="document.location='mai'+'lto:RalfBecker'+unescape('%40')+'outdoor-training'+unescape('%2E')+'de'; return false;">RalfBecker AT outdoor-training DOT de</a></h3>
<p>A referenz documentation about the new eTemplates and the <a href="#referenz">syntax and parameters</a> <p>A referenz documentation about the new eTemplates and the <a href="#referenz">syntax and parameters</a>
of the several widgets.</p> of the several widgets.</p>
@ -807,7 +807,7 @@ This is done in most cases by the underlaying html-class and not direct in eTemp
<h1>How to implement new widgets / extensions to the eTemplates?</h1> <h1>How to implement new widgets / extensions to the eTemplates?</h1>
<p>The eTemplates have an interface to extend them with new widgets. These widgets are php-classes, can use <p>The eTemplates have an interface to extend them with new widgets. These widgets are php-classes, can use
eTemplates to define the UI of the new widget and are stored in the eTemplate's inc-dir or the inc-dir of a eTemplates to define the UI of the new widget and are stored in the eTemplate's inc-dir or the inc-dir of a
phpGroupWare application. The editor and the etemplate-class autoload the existing extensions.</p> eGroupWare application. The editor and the etemplate-class autoload the existing extensions.</p>
<i>I will made more documentation about the interface availible soon. For now have a look for the source <i>I will made more documentation about the interface availible soon. For now have a look for the source
of the existing extensions.</i> of the existing extensions.</i>