Skip to the content
Documentation

Sample

No ratings yet

Fetching Related objects in the pagelayout

{let related_objects=fetch( 'content', 'related_objects',
		hash( 'object_id', $module_result.content_info.object_id ) )}

	{section loop=$related_objects var=related_object}

		URL: {$related_object.item.main_node.url_alias|ezurl} <br />
		Name: {$related_object.item.name} <br />

		{node_view_gui view=line content_node=$related_object}

	{/section}

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: Sample

    Marc ·

    Thanks for the exemple, but there is a little error in your statement:
    {node_view_gui view=line content_node=$related_object}
    has to be replaced with
    {node_view_gui view=line content_node=$related_object.main_node}
    as node_view_gui requires an ezcontentobjecttreenode object for content_node:
    -->http://ez.no/doc/ez_publish/techn...unctions/visualization/node_view_gui
    Hope this help others.
    Marc