RM 2.2 How can I reference resources in node pages or threads?

stromb0li

Active member
How can I reference a resource that has been created to get at the URL, title, etc? I'd like to use the properties of a given resource in the content of a page as well as post.

I tried something like this, but no luck!
HTML:
<xf:macro name="resource"
    arg-resource="12345"
    arg-category="15">
    <div><a href="{{ link('resources', $resource) }}" class="labelLink" rel="nofollow">{$resource.title}</a></div>
</xf:macro>

Thank you!
 
Top Bottom