Is there a way to echo the custom collection fields within HTML?
For example, if I have a field containing a URL, I would ideally like to be able to echo that in some form such as:
<a href="{*Field Name*}">Click here</a>
I would be using this in the Collection Item template so when you view the record I can be returning specific fields in the HTML where needed.
Any thoughts/advice is greatly appreciated.
Many thanks.
1 Like
Hi! This is not yet possible. There is a feature request for this: Extend the functionality of the dynamic data (collections)
P.S. I’ve seen that you have added your input to the feature request
2 Likes
Thanks mate just spotted it after I posted after searching for Data Bind
2 Likes
I’ve gotten round it at the moment by using JS.
- I echo the field as a text item.
- Add a class to the element
- Set visibility to hidden
- Create an element I want to affect with the data
- Add a class
- Add relevant JS to make the magic happen
This solves the issue for me temporarily but that’s a whole load of pain vs maybe a nice “WordPress style” shortcode option for the future.
1 Like