Blog Sections Open

Using a Resource List TV and Returning a Real Link Label

A TV configuration guide for choosing resources efficiently in the manager while still outputting a proper link label instead of only the numeric resource ID.

Resource-based TVs are convenient until the editor needs a searchable input experience and the frontend needs a friendly link label instead of the raw resource ID.

The donor problem

  • Resource List returned a good link label but was awkward to use with long lists
  • Listbox (Single Select) was easier to search with the keyboard but returned the numeric ID in output

The practical takeaway

If a TV stores the resource ID, the frontend should resolve that ID into the desired title explicitly rather than expecting the raw TV output to magically produce the perfect anchor text. In other words, store the identifier, then render the linked resource through the resource API or a helper snippet.

Newer post

Setting a Default Value for a Date TV in Evolution CMS

A guide to the common “current date by default” problem for Date TVs and why naïve @EVAL attempts often fail.

Older post

Auto-Filling an Empty TV from the Parent Resource

A manager-save pattern for inheriting a TV value from the parent resource when the child field is left empty.