cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Group/Struct widget
Date Sun, 23 Oct 2005 14:43:13 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/740.html

Document ID: 740
Branch: main
Language: default
Name: Group/Struct widget (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 10/23/05 2:43:09 PM
Updated by: Bruno Dumon

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 1501 bytes (previous version: 737 bytes)
Content diff:
(14 equal lines skipped)
    
    <p>The group widget was previously called struct.</p>
    
--- <h1>Configuration</h1>
+++ <h1>Definition</h1>
    
    <pre>&lt;fd:group id="..." state="..."&gt;
      &lt;fd:widgets&gt;
(11 equal lines skipped)
    &lt;/fd:group&gt;
    </pre>
    
+++ <h1>Template</h1>
+++ 
+++ <p>A group widget is inserted in a template using the ft:group tag. The content
+++ of the ft:group widget is the template for the children of the group widget,
+++ thus should contain the template tags for these child widgets.</p>
+++ 
+++ <pre>&lt;ft:group id="..."&gt;
+++   [...]
+++ &lt;/ft:group&gt;
+++ </pre>
+++ 
+++ <h2>Example</h2>
+++ 
+++ <p>For a definition like this:</p>
+++ 
+++ <pre>&lt;fd:group id="mygroup"&gt;
+++   &lt;fd:widgets&gt;
+++     &lt;fd:field id="field1"/&gt;
+++     &lt;fd:field id="field2"/&gt;
+++   &lt;/fd:widgets&gt;
+++ &lt;/fd:group&gt;</pre>
+++ 
+++ <p>The template could look like this:</p>
+++ 
+++ <pre>&lt;ft:group id="mygroup"&gt;
+++   &lt;ft:widget id="field1"/&gt;
+++   &lt;br/&gt;
+++   &lt;ft:widget id="field2"/&gt;
+++ &lt;/ft:group&gt;
+++ </pre>
+++ 
+++ <h1>Styling (default HTML XSL)</h1>
+++ 
+++ <p>N/A</p>
+++ 
    </body>
    </html>


Fields
======
no changes

Links
=====
no changes

Custom Fields
=============
no changes

Collections
===========
no changes

Mime
View raw message