Skip to content
Advertisement

Directus v9: Is there a way to make links and/or buttons in the page view?

I have a directus 9 project. One table is for contacts.

Contacts have emails and a special button to click which leads to an external site.

Is it possible to directly click the email (as a mailto: link) and also show to button in the page view?

enter image description here

Advertisement

Answer

I think you’re looking for Custom displays. In the component field you’d need to determine if the value is a link and return it as such, possibly with linkify-string or regex patterns.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement