2

对于我们网站上的导航,我需要从我们的 eZ Publish 安装中的某些对象中获取特定区域和包含的块。

你能告诉我如何获取这个区域的块吗?

我尝试使用属性(显示)检查整个对象,但我只通过使用找到了这个输出

{$object.children[0].data_map.page.content.zones|attribute(show)}

结果

Attribute Type Value
0   object[eZPageZone]  Object
>id     string  'a52658c8b1d003bbbe6dc542108dd534'
>zone_identifier    string  'main'
1   object[eZPageZone]  Object
>id     string  '3893870da1d595349061a4bba3fd1be7'
>zone_identifier    string  'guide'
2   object[eZPageZone]  Object
>id     string  'f43306e22fb45f1ed72ce3b7276c39d9'
>zone_identifier    string  'keyvis'

好吧,我得到了区域ID ...

是否可以获取该 ID 后面的区域和块?

4

0 回答 0