url links in display template

56 views
Skip to first unread message

Gøran L

unread,
May 13, 2024, 9:02:58 AM5/13/24
to ResourceSpace
Hi

In earlier versions of ResourceSpace - specifically version 10.0, it was possible to insert links within the display template like this:


<div class="item"><h3>[title]</h3>
<a href="http://.../resourcespace/pages/search.php?search=keywords:[value]">[value]</a></div>

<div class="clearerleft"> </div>

However, this no longer seems to work in version 10.3. Links is working, but inserting the [value] within the url doesnt work.

Does anyone know if this is a bug or if this functionality has been intentionally removed?

Joseph Brooke

unread,
May 28, 2024, 11:08:39 AM5/28/24
to ResourceSpace
Hi Gøran,

In recent versions of ResourceSpace if you want to include the [value] in a URL you should instead use [url]: https://www.resourcespace.com/knowledge-base/resourceadmin/advanced-configure-metadata-field

Can you please try this instead:

<div class="item"><h3>[title]</h3>
<a href="http://.../resourcespace/pages/search.php?search=keywords:[url]">[value]</a></div>

<div class="clearerleft"> </div>

Thanks

Gøran L

unread,
Jun 3, 2024, 4:18:07 AM6/3/24
to ResourceSpace
Hi Joseph,

Great, thanks for the clarification.
now it works, I didn't catch that change in the knowledge base article.

Gøran L

unread,
Aug 28, 2025, 8:50:50 AM (10 days ago) Aug 28
to ResourceSpace
Hi Joseph,

Thanks for the clarification regarding using [url] in recent versions to generate custom links in the display template.

However, after testing this in ResourceSpace 10.6, it seems that [url] no longer behaves as expected for dynamic keyword list fields. Regardless of the template I define, the field values are automatically converted into internal search links (e.g., search.php?search=@@<node_id>), and my custom URL is ignored.

For example, with a metadata field of type "dynamic keyword list" (e.g., productid), containing multiple values like 123456 and 987654, I tried the following display template:


<div class="item"><h3>[title]</h3>
<a href="https://testserver1/productid/[url]">[value]</a></div>

<div class="clearerleft"> </div>


But the generated links still point to the local ResourceSpace search (e.g., https://my-rs-server/pages/search.php?search=@@317) instead of using the custom URL I’ve provided.

Interestingly, this works perfectly with plain text fields, where [url] (or even [value]) is replaced correctly inside the href. It seems the auto-linking behavior for dynamic keyword fields is overriding the display template logic.

Question:

Is there a way to disable the automatic internal linking behavior for dynamic keyword list fields?

Or a way to fully control the output via view_template, without it being overridden by internal logic?

If not, would it be possible to make this behavior optional/configurable in a future release?

In some use cases (like mine), these values are meant to link to external systems, not trigger internal ResourceSpace searches.

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages