Subinformation (SP-Tag): Unterschied zwischen den Versionen

Aus SiteparkWiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: <!-- Beim Anlegen einer neuen Tagbeschreibung bitte zuerst eine Seite mit dem Namen des Tags in der Schreibweise sp:tagname bzw. spt:tagname anlegen. Dann diese Sei...)
 
Zeile 32: Zeile 32:
 
! Name || Type || Required || Default || ab IES Version
 
! Name || Type || Required || Default || ab IES Version
 
|-
 
|-
| <code>xxx</code>
+
| <code>name</code>
| [[Attribute]]
+
| [[Variable]]
 
| Ja
 
| Ja
 
| None
 
| None
 
| 1
 
| 1
 
|-
 
|-
| <code>xxx</code>
+
| <code>type</code>
 
| [[Text]]
 
| [[Text]]
 
| Nein
 
| Nein
 
| None
 
| None
| 1
+
| 2.0.3
|-
 
| <code>xxx</code>
 
| [[Expression]]
 
| Nein
 
| None
 
| 1
 
|-
 
| <code>xxx</code>
 
| [[Locale]]
 
| Nein
 
| None
 
| 1
 
 
|}
 
|}
  
;<code>xxx</code>
+
;<code>name</code>
:xxx.
+
:Name der Subinformation.
  
;<code>xxx</code>
+
;<code>type</code>
:xxx.
+
:Optionale Angabe eines Typs. Dieser Tag erzeugt standardmäßig [[SubinformationVO|Subinformation-Objkete], kann aber auch bestimmte andere Datentypen erstellen. So kann über den Typ <code>calendar</code> ein [[CalendarInformationVO|CalendarInformation-Object] angelegt werden.
  
 
==Beispiele==
 
==Beispiele==

Version vom 16. Februar 2009, 16:12 Uhr


Name

<sp:subinformation> - Subinformation-Tag

Syntax

<sp:subinformation></sp:subinformation>

Beschreibung

Dieser Tag dient zur Gruppierung weiterer SP-Tags. Dadurch werden mehrere Information in einer sog. Subinformation zusammengefasst. Durch Angabe eines optionalen Typs können außerdem noch bestimmte Objekte angelegt werden. So werden z.B. CalendarInformation-Objekte in Templates unter Verwendung dieses Tags beschrieben.

Attribute

Name Type Required Default ab IES Version
name Variable Ja None 1
type Text Nein None 2.0.3
name
Name der Subinformation.
type
Optionale Angabe eines Typs. Dieser Tag erzeugt standardmäßig [[SubinformationVO|Subinformation-Objkete], kann aber auch bestimmte andere Datentypen erstellen. So kann über den Typ calendar ein [[CalendarInformationVO|CalendarInformation-Object] angelegt werden.

Beispiele

Erstellung eines CalendarInformation

Template Quelltext

xxx

Ausgabe

xxx

Gruppierung von Textfeldern

Template Quelltext

<sp:subinformation name="sp_textblock">
  <sp:text name="sp_text_a"/><br>
  <sp:text name="sp_text_b"/><br>
</sp:subinformation>

Ausgabe

<sp:print name="sp:textblock.sp_text_a"/> - <sp:print name="sp:textblock.sp_text_b"/>