Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Using the {fieldname:url} tag…

Status Resolved
Add-on / Version Reel
Severity Trivial
EE Version

Brian Coult

Oct 04, 2012

Hi Brian,

Just a quick one hopefully… im using the CP for wyvern video for my client which is working very nicely, but im only wanting to pull out the actual URL into the front page code…

Now when you use the {fieldname:url} with YouTube video… its adding the /embed/ into the URL which is causing issues with me using this in Fancybox modal.

Is there anyway of getting rid of the /embed/ part…

So im getting this

http://www.youtube.com/embed/opj24KnzrWo?rel=0&wmode=opaque&hd=1

But only want

http://www.youtube.com/watch?v=opj24KnzrWo

Otherwise it opens up in a new page all the time.

Many thanks
Brian.

#1

BoldMinded (Brian)

Well, you can construct the URL yourself by just using the {fieldname:id} value, e.g. http://www.youtube.com/watch?v={fieldname:id}

#2

Brian Coult

Ah spot on Brian… worked a treat after of course i had made the obligatory mistake of just copying the

{fieldname:id}

without actually changing it to my actual field name 😊

But works fine now i noticed the rookie mistake…

Thanks for the quick support, much appreciated.

Brian.

Login to reply