I have a custom field youtube video in a custom type and I want to display this link as a video in the type's template
i tries to use the bootstrap filed of responsive embed linked to that url custom field (both raw or url) but i got a white screen
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src=[types field='youtube-link' output='raw'][/types] allowfullscreen></iframe></div>
also in the latest version i cannot find the cred and the css and java fields . Did you remove them in that version ?
thanks a lot
Hello,
There is a built-in "Embedded Media" field within Toolset Types plugin, for example, you can try these:
1) Edit the custom field "youtube-link", "Field type" switch to: Embedded Media
2) Edit your post, fill the Youtube link value in field "youtube-link", for example:
hidden link
3) Display "youtube-link" field value with Types shortcode, like this:
<div class="embed-responsive embed-responsive-16by9">
[types field='youtube-link'][/types]
</div
More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#embedded-media
For the question:
in the latest version i cannot find the cred and the css and java fields
When you edit a Toolset form, in section "Form editor", you can setup your custom CSS codes and Javascript codes into section "CSS Editor" and "JS Editor", see screenshot: css-js.JPG