Hum...
When I remove the simple quotes in <i>'content'</i> and <i>'related_objects'</i>, the system returns no error but it doesn't display the related objetcs. What does it mean ??
Thanks Jo but where did you find this? Is the doc out-of-date? http://ez.no/doc_hidden/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/related_objects
...
{* For related objects: *}
{let objects=$node.object.related_contentobject_array}
{section loop=$objects}
<a href="{$objects.main_node.url_alias}">{$objects.name}</a>
{/section}
...
The related_objects and related_objects_count fetch functions were introduced in version 3.6.3 ( http://pubsvn.ez.no/nextgen/stable/3.6/doc/changelogs/3.6/CHANGELOG-3.6.2-to-3.6.3 ).
Hmm... I checked in the code for 3.5. Looks like the fetch function you use was created for 3.6, so it should work for you the way you tried.
The problem might be your loop. Can you check the source of the output and see if the links actually are there, but without any link text? If so, the problem is that you have just forgot to add a var-name for your loop. The loop should be something like this:
OK Jo, you're right: the var-name was missing in my loop. Now it works fine.
Amazed ... Thanks a lot. Really.
A last question just to be complete: in my template, is there a way to inform users with something like "No additional info" when the given artice has no related object ?
You must be logged in to post messages in this topic!