LoginSignup
0
0

More than 5 years have passed since last update.

eZ Publish (Legacy) の eZContentObjectTreeNode の属性一覧

Last updated at Posted at 2017-01-17

eZ Publish 5.x 以前で Legacy テンプレートを編集する場合の eZContentObjectTreeNode の属性早見表。
https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Objects/ezcontentobjecttreenode

$node.children とかいちいちフェッチしないでいいので便利。

<h1>{$node.name|wash()}</h1>
<ul>
{foreach $node.children as $child}

  <li><a href="{$child.url_alias|ezurl('no')}">{$child.name|wash()}</a></li>
{/foreach}

</ul>

プリフェッチされた値を提供する属性

属性 説明
node_id string ノード ID
parent_node_id string 親ノードのノード ID
main_node_id string メインノードのノード ID
contentobject_id string コンテンツのオブジェクト ID
contentobject_version string 公開バージョンのバージョン番号
contentobject_is_published string オブジェクトの公開ステータス (0=非公開, 1=公開)
depth string コンテンツノードツリー内のノードの深さ
トップレベルノードの depth は 1
sort_field string 子ノードをソートするためのソート方法
sort_order string ノードの子をソートするときに使用されるソート順
priority string ノードの優先度 (正または負の整数)
modified_subnode string サブノードが変更された正確な時刻を特定する UNIX タイムスタンプ
path_string string ノードのパス文字列 (例えば "/1/2/44")
path_identification_string string 初期/メイン言語におけるノードのパス識別文字列 (例えば "company/about_us").
remote_id string ノードのユニークな ID (avoids crashes when importing/exporting nodes).
リモート ID はノードが生成された時刻とランダム値の MD5 ハッシュ
is_hidden string ノードの非表示ステータス (0=visible, 1=hidden)
is_invisible string ノードの可視ステータス (0=visible, 1=hidden by superior)

要求に応じて計算する必要がある属性

属性 説明
name string ノードがカプセル化するオブジェクトの名前 (例えば "My article")
data_map array ezcontentobjectattribute オブジェクトとしてのオブジェクトの属性
object object ノードがカプセル化する実際のコンテンツオブジェクト (ezcontentobject)
subtree array このノードの下にある ezcontentobjecttreenode オブジェクトとしてのすべてのノード。
children array ノード直下のノードの ezcontentobjecttreenode オブジェクトの配列
children_count string ノード直下のノード数
view_count integer ノードが閲覧された回数
contentobject_version_object object The current version (as ezcontentobjectversion) of the object that the node encapsulates.
sort_array array The node's sort array.
can_read boolean Returns TRUE if the current user has read access to the node (FALSE otherwise).
can_pdf boolean Not documented yet.
can_create boolean Returns TRUE if the current user can create nodes under this node (FALSE otherwise).
can_edit boolean Returns TRUE if the current user has edit access to the node (FALSE otherwise).
can_hide boolean Returns TRUE if the current user can modify the hidden state of the node (FALSE otherwise).
can_remove boolean Returns TRUE if the current user can remove the node (FALSE otherwise).
can_move boolean Returns TRUE if the current user can move the node to another location (FALSE otherwise).
can_move_from boolean Same as "can_move", returns TRUE if the current user has permissions to move node, FALSE otherwise.
can_add_location boolean Not documented yet.
can_remove_location boolean Not documented yet.
can_view_embed boolean Not documented yet.
is_main boolean Not documented yet.
creator object The object (as ezcontentobject) containing the user who created the node.
path array Array containing the nodes that make up the path as ezcontentobjecttreenode objects. The current node is not included.
path_array array Array of strings revealing the ID numbers of the nodes that make up the path. The current node is also included.
parent object The parent node (as ezcontentobjecttreenode).
url string The URL of the node either as a virtual URL ("company/about_us") or a system URL ("content/view/full/13") depending on a configuration setting.
url_alias string The virtual URL of the node in the current language (which is determined according to the list of prioritized languages), for example "company/about_us".
class_identifier string The identifier of the class which the object encapsulated by the node is an instance of (for example "product_review").
class_name string The name of the class which the object encapsulated by the node is an instance of (for example "Product review").
hidden_invisible_string string The visibility status of a node ("-/-" = completely visible, "H/X" = hidden by user and thus invisible, "-/X" = hidden by superior).
hidden_status_string string The visibility status of the node: "Visible", "Hidden" or "Hidden by superior".
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0