Der Datentyp ezobjectrelation (Objekt Verknüpfung)
Klasse eZObjectRelationType in kernel/classes/datatypes/ezobjectrelation/ezobjectrelationtype.php; Bezeichner ezobjectrelation, aufgeführt in settings/content.ini [DataTypeSettings] AvailableDataTypes[].
Was er speichert
Die Spalten der Attributtabellen, die seine Klasse liest oder schreibt: data_int, data_int1, data_int2, data_int3, data_text, data_text5 (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.
Sortierung: sortKeyType() gibt int zurück.
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/ezobjectrelation.tpl:
{* DO NOT EDIT THIS FILE! Use an override template instead. *}
if and( $attribute.content, or( $attribute.content.can_read, $attribute.content.can_view_embed ), $attribute.content.has_visible_node )
content_view_gui view=text_linked content_object=$attribute.content
else
'No relation'|i18n( 'design/standard/content/datatype' )
/ifDas ausgelieferte Template, das ihn bearbeitet (attribute_edit_gui), design/standard/templates/content/datatype/edit/ezobjectrelation.tpl (die ersten 25 Zeilen):
{* DO NOT EDIT THIS FILE! Use an override template instead. *}
default attribute_base=ContentObjectAttribute
let class_content=$attribute.contentclass_attribute.content
switch match=$class_content.selection_type
{* Browse. *}
case match=0
<div class="block" id="ezobjectrelation_browse_$attribute.id">
<table class="listif $attribute.content|not hide/if" cellspacing="0">
<thead>
<tr>
<th>'Name'|i18n( 'design/standard/content/datatype' )</th>
<th>'Type'|i18n( 'design/standard/content/datatype' )</th>
<th>'Section'|i18n( 'design/standard/content/datatype' )</th>
<th>'Published'|i18n( 'design/standard/content/datatype' )</th>
</tr>
</thead>
<tbody>
<tr class="bglight">
if and( $attribute.content, or( $attribute.content.can_read, $attribute.content.can_view_embed ) )
{* Name *}
<td>$attribute.content.name|wash()</td>Überschreiben Sie sie für ein Klassenattribut in einer override.ini.append.php mit Source=content/datatype/view/ezobjectrelation.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/ezobjectrelation/ezobjectrelationtype.php, settings/content.ini, design/standard/templates/content/datatype/view/ezobjectrelation.tpl, design/standard/templates/content/datatype/edit/ezobjectrelation.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.