Tell us what you are trying to do?
I am trying to take the output of a dynamic field and feed it into a pdf embedder shortcode to display an embedded pdf in a custom type display template.
I am currently trying
[pdfjs-viewer viewer_width=0 viewer_height=800 url="[tb-dynamic provider='__current_post' post='current' source='toolset_custom_field|field-group-for-journal-issues' field='pdf' force-string='first' ]" download=true print=true fullscreen=false fullscreen_target=false fullscreen_text="on" zoom=0 search_term="" ]
Which very nearly works, but the pdf filename is wrapped in a link and some spans, which mean it doesn't work.
Should I just bite the bullet and work out how to do php templates?
Is there a way of getting the file field shortcode to output just its content without the like?
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site?
Sorry hidden
Hello and thank you for contacting the Toolset support.
The tb-dynamic shortcode is not documented and is not intended to be used as a shortcode. Instead, use the types shortcode with the output="raw" attribute:
[pdfjs-viewer viewer_width=0 viewer_height=800 url="[types field="pdf" ouput="raw"][/types]" download=true print=true fullscreen=false fullscreen_target=false fullscreen_text="on" zoom=0 search_term="" ]
Read more about it here https://toolset.com/documentation/customizing-sites-using-php/functions/#file