mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Updated CodeCorner3 (markdown)
parent
b3410fe641
commit
f09eece886
@ -78,15 +78,15 @@ So
|
||||
It is still there nothing changed so far exept the way we handle the setup.<br />
|
||||
With the <tt>setup.inc.php</tt> we tell eGroupware how to handle our application, apply VersionNumbers and all the other fancy stuff we might need later on.<br />
|
||||
|
||||
<h4>creating an eTemplate for the dialog</h4>
|
||||
Now we need a nice edit dialog and use the eTemplate editor to set it up.<br />
|
||||
<h4>Creating an eTemplate for the dialog</h4>
|
||||
Now we need a nice edit dialog and use an editor of our choice to do that.<br />
|
||||
Assume that we wanted to name our first eTemplate <em>index</em>.<br />
|
||||
|
||||
<dl>
|
||||
<dd>
|
||||
<dl>
|
||||
<dt>Step 1</dt>
|
||||
<dd>start the etemplate app and type 'test.index' in the name field. Click on save in order to create the template as a new (almost empty) one.</dd>
|
||||
<dd>create a file ```index.xet``` in the ```templates/default``` directory of our app ```test```. ... ```test/templates/default/index.xet``` .</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
@ -96,11 +96,15 @@ Assume that we wanted to name our first eTemplate <em>index</em>.<br />
|
||||
<dd>
|
||||
<dl>
|
||||
<dt>Step 2</dt>
|
||||
<dd>an (almost empty) empty template is displayed. An eTemplate can be thought off as a “grid”. The first cell may be a bit tricky to find, but will be highlighted when moving the mouse over it. On my computer this cell appears in pink as illustrated below. If you do not see anything, try selecting everything via <tt>Strg-A</tt>. You should see a small rectangle right below the horizontal rule below the button CSS-Style:</dd>
|
||||
</dl>
|
||||
|
||||
<dl>
|
||||
<dd>[vfs:/home/Manual/etemplate0.png]</dd>
|
||||
<dd> Enter the basics:
|
||||
```
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
</overlay>
|
||||
```
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
@ -110,12 +114,24 @@ Assume that we wanted to name our first eTemplate <em>index</em>.<br />
|
||||
<dd>
|
||||
<dl>
|
||||
<dt>Step 3</dt>
|
||||
<dd>doubleclick the small rectangle right below the horizontal rule below the button CSS-Style. You should see something similar to this:</dd>
|
||||
<dd>put in the basic template structure as it is used througout EGroupware
|
||||
```xml
|
||||
<template id="test.index.dates" template="" lang="" group="0" version="1.1.001" >
|
||||
|
||||
</template>
|
||||
<template id="test.index.add" template="" lang="" group="0" version="1.1.001">
|
||||
|
||||
</template>
|
||||
<template id="test.index.rows" template="" lang="" group="0" version="1.1.001">
|
||||
|
||||
</template>
|
||||
<template id="test.index" template="" lang="" group="0" version="1.9.001">
|
||||
<nextmatch id="nm" options="test.index.rows" header_left="test.index.add" header_right="test.index.dates"/>
|
||||
</template>
|
||||
```
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<dl>
|
||||
<dd>[vfs:/home/Manual/etemplate1.png]</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user