Hello, I would like to set a link text for my link in template, but there is only url field ? please help me how i can add text/title to the Link ?
I checked Content Relationship - Documentation - Prismic but still i can't see how I can set text/title for Link where I want to provide external url and link text or link title.
I need something like that:
<a href="link.url" target="link.target">link.text / link.title</a>
1 Like
You would need to add additional fields next to the link (use the ‘key text’ property) to add text and titles.
1 Like
This is not a solution, it's a workaround. A link without content for the tag? In fact link should not only provide a field for tag content but also for the title attribute.
Thanks Phil,
but that's not helping, since we don't use and don't need Frameworks and hence Slice Machine has no use for us. I need this feature for legacy slices.
Phil
(Phil Snow)
November 4, 2024, 11:20am
10
In that case, the only option is to use multiple fields, like above:
You would need to add additional fields next to the link (use the ‘key text’ property) to add text and titles.
[image]
Legacy Slices will not receive any updates.