I realize this is an unusual question, but I’d like to create a page with a list of all my collection item urls. When I add a collection list and turn the items into links, I don’t see the option to display the full url or slug as the link text (screenshot attached). I can only set the link text as the CMS item name.
Is there a way to display the full url or a cms item? Custom code?
The display url is not a value you can select for the anchor text with CMS binding; so the only way would be to use JavaScript to replace the anchor text with the destination URL. That’s custom code albeit not a lot of it.
Hi Max,
Another solution would be to use an Embed element.
Add an Embed inside of the Collection Item element on your page. Paste in the following code: <a href="/sample-items/{{wf {"path":"slug","type":"PlainText"} }}">/sample-items/{{wf {"path":"slug","type":"PlainText"} }}</a>
Replace sample-items (in both places) with your Collection Url. You can get this value from your collection settings:
Note that the link will only work on your published site, not in the editor preview.