Der Datentyp ezisbn (ISBN)
Klasse eZISBNType in kernel/classes/datatypes/ezisbn/ezisbntype.php; Bezeichner ezisbn, aufgeführt in settings/content.ini [DataTypeSettings] AvailableDataTypes[].
Was er speichert
Die Spalten der Attributtabellen, die seine Klasse liest oder schreibt: data_int1, data_text (data_text, data_int, data_float und sort_key_* gehören zum Objektattribut; data_text1 ... data_int4 sind die Einstellungen des Klassenattributs). Durch Lesen der Klasse ermittelt: eine Heuristik.
Er ist von der Suche indiziert.
In Templates
my_attribute steht für den Bezeichner eines Attributs dieses Typs in Ihrer Klasse:
def $attribute = $node.data_map.my_attribute
if $attribute.has_content
attribute_view_gui attribute=$attribute
/if
{* der Wert, wie der Datentyp ihn zurückgibt (objectAttributeContent()) *}
$attribute.content|attribute( show, 1 )Das ausgelieferte Template, das ihn anzeigt (attribute_view_gui), design/standard/templates/content/datatype/view/ezisbn.tpl:
{* DO NOT EDIT THIS FILE! Use an override template instead. *}
ISBN $attribute.data_text|wash( xhtml )Das ausgelieferte Template, das ihn bearbeitet (attribute_edit_gui), design/standard/templates/content/datatype/edit/ezisbn.tpl:
{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{default attribute_base=ContentObjectAttribute
class_content=$attribute.class_content}
<label for="ezcoa-if ne( $attribute_base, 'ContentObjectAttribute' )$attribute_base-/if$attribute.contentclassattribute_id_$attribute.contentclass_attribute_identifier_1">ISBN </label>
if and( is_set( $class_content.ISBN13 ), $class_content.ISBN13 )
<input id="ezcoa-if ne( $attribute_base, 'ContentObjectAttribute' )$attribute_base-/if$attribute.contentclassattribute_id_$attribute.contentclass_attribute_identifier_1" class="ezcc-$attribute.object.content_class.identifier ezcca-$attribute.object.content_class.identifier_$attribute.contentclass_attribute_identifier" type="text" name="$attribute_base_isbn_13_$attribute.id" value="$attribute.content.value|wash" />
else
<input id="ezcoa-if ne( $attribute_base, 'ContentObjectAttribute' )$attribute_base-/if$attribute.contentclassattribute_id_$attribute.contentclass_attribute_identifier_1" class="ezcc-$attribute.object.content_class.identifier ezcca-$attribute.object.content_class.identifier_$attribute.contentclass_attribute_identifier" type="text" name="$attribute_base_isbn_field1_$attribute.id" size="2" value="$attribute.content.field1|wash" />
-
<input id="ezcoa-if ne( $attribute_base, 'ContentObjectAttribute' )$attribute_base-/if$attribute.contentclassattribute_id_$attribute.contentclass_attribute_identifier_2" class="ezcc-$attribute.object.content_class.identifier ezcca-$attribute.object.content_class.identifier_$attribute.contentclass_attribute_identifier" type="text" name="$attribute_base_isbn_field2_$attribute.id" size="6" value="$attribute.content.field2|wash" />
-
<input id="ezcoa-if ne( $attribute_base, 'ContentObjectAttribute' )$attribute_base-/if$attribute.contentclassattribute_id_$attribute.contentclass_attribute_identifier_3" class="ezcc-$attribute.object.content_class.identifier ezcca-$attribute.object.content_class.identifier_$attribute.contentclass_attribute_identifier" type="text" name="$attribute_base_isbn_field3_$attribute.id" size="6" value="$attribute.content.field3|wash" />
-
<input id="ezcoa-if ne( $attribute_base, 'ContentObjectAttribute' )$attribute_base-/if$attribute.contentclassattribute_id_$attribute.contentclass_attribute_identifier_4" class="ezcc-$attribute.object.content_class.identifier ezcca-$attribute.object.content_class.identifier_$attribute.contentclass_attribute_identifier" type="text" name="$attribute_base_isbn_field4_$attribute.id" size="2" value="$attribute.content.field4|wash" />
/if
/defaultÜberschreiben Sie sie für ein Klassenattribut in einer override.ini.append.php mit Source=content/datatype/view/ezisbn.tpl und einer Bedingung auf attribute_identifier (siehe Ein Template-Override).
Siehe auch
Erzeugt von ./console exp:help:examples --language=ger-de aus kernel/classes/datatypes/ezisbn/ezisbntype.php, settings/content.ini, design/standard/templates/content/datatype/view/ezisbn.tpl, design/standard/templates/content/datatype/edit/ezisbn.tpl. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.