Description of Problem:
Hi there
I am trying to wrap a number of template variables in a hyperlink using the TV type Resource List like so:
<a href="[[*link]]">
<span class="project-title">[[*title]]</span>
[[*image]]
</a>
The 'link' TV is a Resource List, where I need the user to select the resource and then the URL gets injected correctly.
If I set the output of this TV to 'text', you get an id of the resource.
e.g. <a href="6"> ...
I need to build this link using a friendly URL.
If I set the output to 'URL' and slightly change the markup:
[[*link]]
<span class="project-title">[[*title]]</span>
[[*image]]
The 'link' TV closes the a tag early before the image.
e.g. <a href="cleanUrl.html"></a> ....
Is this possible to wrap content with a friendly URL? Or am I going about it the wrong way?
Cheers in advance community. Jesse
MODX Version: MODX Revolution 2.2.6-pl (traditional)
PHP Version 5.3.27
Database (MySQL, SQL Server, etc) Version: 5.5.32-cll - MySQL Community Server (GPL)