attribute_identifier not working for me.
I'm using the following code, trying to show related items of from folder/related_organisations only, but it doesn't seem to work.
I've tried using the attribute id, adding/removing the quotation marks, changing the order of the rules... I can make it fetch all related objects, and I can make it fetch none - but I can't get it to only fetch the ones I want.
Can anyone see a reason why it wouldn't be working? I'm using 3.86.
{def $relations=fetch( 'content', 'related_objects',
hash( 'object_id', $node.object.id,
'all_relations' , true(),
'attribute_identifier', 'folder/related_organisations'
))}
Comments (1 historical)
Written by readers of the earlier documentation sites, kept as they were.
Re: attribute_identifier not working for me.
Heiner ·
{def $relations=fetch( 'content', 'related_objects',hash( 'object_id', $node.object.id,'all_relations' , false(),'attribute_identifier', 'folder/related_organisations' ))}as I see you had 1 mistake: you have to set all_relations to false.