mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-07 23:49:07 +02:00
Updated CodeCorner3 (markdown)
@ -54,7 +54,7 @@ The optional file <tt>setup.inc.php</tt> in folder <tt>$app/setup</tt>?<br />
|
||||
</pre>
|
||||
|
||||
<hr style="text-align: left; width: 99%;" /><br />
|
||||
Since we had our original application registered manually, we should unregister our baby, to avoid version-number conflicts that may occur, since the manually registered application had no ((VersionNumbers|version number)) at all.<br />
|
||||
Since we had our original application registered manually, we should unregister our baby, to avoid version-number conflicts that may occur, since the manually registered application had no Version Number at all.<br />
|
||||
So
|
||||
<ul>
|
||||
<li>unregister the manually registered test application</li>
|
||||
@ -76,7 +76,7 @@ So
|
||||
<li>call the test application.</li>
|
||||
</ul>
|
||||
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 />
|
||||
With the <tt>setup.inc.php</tt> we tell eGroupware how to handle our application, apply Version Numbers 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 an editor of our choice to do that.<br />
|
||||
@ -86,7 +86,7 @@ Assume that we wanted to name our first eTemplate <em>index</em>.<br />
|
||||
<dd>
|
||||
<dl>
|
||||
<dt>Step 1</dt>
|
||||
<dd>create a file <code>index.xet</code> in the <code>templates/default</code> directory of our app <code>test</code>. ... <pre>test/templates/default/index.xet</pre> .</dd>
|
||||
<dd>create a file <code>index.xet</code> in the <code>templates/default</code> directory of our app <code>test</code>:<pre>test/templates/default/index.xet</pre> .</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
@ -97,13 +97,13 @@ Assume that we wanted to name our first eTemplate <em>index</em>.<br />
|
||||
<dl>
|
||||
<dt>Step 2</dt>
|
||||
<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>
|
||||
```
|
||||
<pre>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
</overlay>
|
||||
</pre>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
@ -115,20 +115,20 @@ Assume that we wanted to name our first eTemplate <em>index</em>.<br />
|
||||
<dl>
|
||||
<dt>Step 3</dt>
|
||||
<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" >
|
||||
<pre>
|
||||
<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.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.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>
|
||||
```
|
||||
</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>
|
||||
</pre>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
Reference in New Issue
Block a user