From 07da6bbec9fe37c9ee8a12baea4009bd4c55616f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 26 Oct 2003 19:25:13 +0000 Subject: [PATCH] phpGW --> eGW --- etemplate/doc/etemplate.html | 14 +++++++------- etemplate/doc/referenz.html | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/etemplate/doc/etemplate.html b/etemplate/doc/etemplate.html index b57ea02e1e..98766fc428 100644 --- a/etemplate/doc/etemplate.html +++ b/etemplate/doc/etemplate.html @@ -2,7 +2,7 @@ - phpGroupware: eTemplates - Templates and Dialog-Editor + eGroupWare: eTemplates - Templates and Dialog-Editor -

eTemplate - Templates and Dialog-Editor for phpGroupware

+

eTemplate - Templates and Dialog-Editor for eGroupWare

by Ralf Becker RalfBecker AT outdoor-training DOT de

A developers tutorial how to write an application with the new eTemplates.
It is also an introduction how to write a phpgw- and setup(3)-compatible app.

@@ -53,7 +53,7 @@ to edit records and search for them.

enable your account for using the app (Admin/User account: check eTemplates).

1. Creating a new phpgw app directory

-

Each app need a name, eg. 'et_media'. We now need to create the following directory structur above the phpgroupware dir: +

Each app need a name, eg. 'et_media'. We now need to create the following directory structur above the eGroupWare dir:

 et_media				that has to be identical to our app-name
 	+ setup				files necessary for the setup Programm, give the webserver write-permission to that dir
@@ -75,7 +75,7 @@ et_media				that has to be identical to our app-name
 	$setup_info['et_media']['enable']    = 1;
 
 	/* Dependencies for this app to work */
-	setup_info['et_media']['depends'][] = array(
+	$setup_info['et_media']['depends'][] = array(
 		 'appname' => 'phpgwapi',
 		 'versions' => Array('0.9.14','0.9.15','0.9.16')
 	);
@@ -144,8 +144,8 @@ Create the file /et_media/index.php with the following content:

 <?php
 /**************************************************************************\
-* phpGroupWare - eTemplates - Tutoria Example - a simple MediaDB           *
-* http://www.phpgroupware.org                                              *
+* eGroupWare - eTemplates - Tutoria Example - a simple MediaDB           *
+* http://www.eGroupWare.org                                              *
 * Written by Ralf Becker <RalfBecker AT outdoor-training DOT de>           *
 * --------------------------------------------                             *
 *  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:

That will omitt our own messages in the class!!!
  • We use a function in our class to call etemplate::writeLangFile('et_media','en',$extra) and can so supply some extra strings.
    If we add this function to the public_functions-array in our class, we can just call this function via the browser:
    - http://ourDomain/phpgroupware/index.php?menuaction=et_media.et_media.writeLangFile (the errormsg can be savely ignored)
    + http://ourDomain/eGroupWare/index.php?menuaction=et_media.et_media.writeLangFile (the errormsg can be savely ignored)
    This is the function (don't forget to add it like the edit-function to public_functions):

    Anyway we have to use the TranslationTools to find and write the lang()-messages of our code!

    diff --git a/etemplate/doc/referenz.html b/etemplate/doc/referenz.html index dcad57a88c..c1c6182b63 100644 --- a/etemplate/doc/referenz.html +++ b/etemplate/doc/referenz.html @@ -1,7 +1,7 @@ - phpGroupware: eTemplate-Referenz + eGroupWare: eTemplate-Referenz -

    eTemplate-Referenz - Templates and Dialog-Editor for phpGroupware

    +

    eTemplate-Referenz - Templates and Dialog-Editor for eGroupWare

    by Ralf Becker RalfBecker AT outdoor-training DOT de

    A referenz documentation about the new eTemplates and the syntax and parameters of the several widgets.

    @@ -807,7 +807,7 @@ This is done in most cases by the underlaying html-class and not direct in eTemp

    How to implement new widgets / extensions to the eTemplates?

    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 -phpGroupWare application. The editor and the etemplate-class autoload the existing extensions.

    +eGroupWare application. The editor and the etemplate-class autoload the existing extensions.

    I will made more documentation about the interface availible soon. For now have a look for the source of the existing extensions.