Updated CodeCorner3 (markdown)

leithoff 2016-07-22 12:03:59 +02:00
parent 026a3eaeba
commit 5ecd7f5d3c

@ -1,7 +1,7 @@
> [Wiki](Home) ▸ [Developer Docs](Developer Docs) ▸ [Code Corner](Code Corner) ▸ **day three** ▸ [a day in between](CodeCorner3a)
***
on day three we went out of base camp eGroupware and stepped into the high fields of ((eTemplate))s.<br />
on day three we went out of base camp eGroupware and stepped into the high fields of our template system.<br />
&nbsp;
<h4>Motivation</h4>
@ -191,7 +191,7 @@ thats a typical textbox with label up front (description), placed in a grid (for
<dd>
<dl>
<dt>Step 5</dt>
<dd>now we need a button to send our data that we collect to us. To accomplish this, we have to add a column to our grid.</dd>
<dd>now we need a button to send our data that we collect to us. </dd>
</dl>
<dl>
@ -212,27 +212,40 @@ those are buttons in a row (of a grid)
<dd>
<dl>
<dt>Step 6</dt>
<dd>Create a widget before the grid</dd>
<dd>Create an area to display some info before the grid</dd>
</dl>
<dl>
<dd>
<ul>
<li>Doubleclick on the label of our name-text-field.</li>
<li>Click on the word <em>grid</em></li>
<li>in the upper area of the properties window is a bar with two select boxes. Within the second one select <em>insert a widget before</em>.</li>
<li>select <em>grid</em> as type</li>
<li>put in some separator before the grid <pre>&lt;hrule/&gt;</pre>.</li>
<li>put in a box <pre>&lt;groupbox id="debuginfo"&gt; &lt;/groupbox&gt;</pre></li>
<li>assign a label/caption to the box (just below the groupbox)
<pre>
&lt;groupbox id="debuginfo"&gt;
&lt;caption label="Debuginfo"/&gt;
</pre></li>
<li>put in a grid
<pre>
&lt;grid&gt;
&lt;columns&gt;
&lt;column/&gt;
&lt;/columns&gt;
&lt;rows&gt;
&lt;row&gt;
&lt;textbox multiline="true" id="message" no_lang="1" readonly="true"/&gt;
&lt;/row&gt;
&lt;row&gt;
&lt;textbox lable="record-id" id="test_id" no_lang="1" readonly="true"/&gt;
&lt;/row&gt;
&lt;/rows&gt;
&lt;/grid&gt;
</pre>
</li>
<li>Save</li>
<li>doubleclick the small rectangle right below the horizontal rule below the button CSS-Style (that is the newly created grid, first cell).</li>
<li>select <em>text</em> as type, <em>Hello</em> as label and <em>who</em> as name.</li>
<li>disable the cell within the grid-row attributes, by typing <tt>!@who</tt> in the disabled property</li>
<li>check the checkbox <em>readonly</em> to make it an read-only textfield. This has two effects:
<ul>
<li>for one thing the value of @who is not editable</li>
<li>the borders around the text-field vanish.</li>
</ul>
<li>now clear cache and cookies of your browser, call <em>Clear cache and register hooks</em> in admin . :
</li>
<li>Save</li>
<li>you should see your new template</li>
</ul>
</dd>
</dl>