How do I get the value of datasource property in a Custom Module?

How do I get the value of datasource property in a Custom Module? The name field from the associated custom module.
this.datasource_value?
this.datasource_name?

Hi @shannonlynd. From the v3.1 release notes we can now output ID, Name and URL of a datasource item like this:


So if your Datasource custom field was called “My Source” the 3 available tags would be:
{{this.MySource}}
{{this.MySource_name}}
{{this.MySource_url}}

Note to @vlad.z, the _name and _url properties aren’t showing up in the Liquid data. Still only just the ID:

This isn’t working with my liquid collection.

The Properties picker shows my field as {{this[‘Marriage1’]}}.
Since I’m using a collection, I changed it to {{item[‘Marriage1’]}}, and this works to produce the id.
When I change it to {{item[‘Marriage1_name’]}}, I get null.

{% if item.marriage1 != null %}|{{item[‘Marriage1_name’]}}|{% endif %}

https://hold-jmb-family-tree-code.treepl.co/jmb-family-tree

Thank you for submitting a bug report.
I’ve added it to the internal bugfix backlog.