Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > YouTube URL Macro View modes: 
User avatar
Member
Member
usmaan - 6/20/2013 10:16:00 AM
   
YouTube URL Macro
I have a DocumentType which contains a YouTube Video Web Part.

In the web part properties, it asks for the Video URL. The DocumentType contains a URL so I want to add a Macro like this:

http://www.youtube.com/watch?v={%Eval("VideoID")%}


The above is not correct in terms of syntax. How do I fix this?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 6/20/2013 11:21:54 AM
   
RE:YouTube URL Macro
It looks like you are confusing transformations with properties and macros. You can simply use the {% %} syntax in the webpart properties as macros. You use <%# Eval("ColumnName") %> in a transformation. Where is it you want to create this dynamic URL? In your transformation (repeater list item)?