Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Using different Flash banners for different site sections View modes: 
User avatar
Member
Member
Kristina - 8/8/2011 10:43:17 AM
   
Using different Flash banners for different site sections
Hello,

How would you go about using different Flash banners in a repeater webpart?

I found this article for images:

http://devnet.kentico.com/Knowledge-Base/portalengine/Using-different-graphics-for-different-site-sectio.aspx

But I am not sure how to write the Transformation for it. Instead of using something like this:

<%# IfEmpty(Eval("FileAttachment"), "no image", "<img alt=\"" + Eval("FileName") + "\" src=\"" + GetFileUrl("FileAttachment") + "?maxsidesize=400\" />") %>


How would you build it for a .swf file? Are all the other steps the same as well?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/9/2011 12:52:37 AM
   
RE:Using different Flash banners for different site sections
Hello,

The approach is basically the same because both, images and flash are only linked files. However, the html, which needs to be generated for flash is more complex. There are a few guides out there, what needs to be generated, for example this one. So you must change the transformation according to the examples with a dynamic url, which is resolved like in the image transformation.

Best regards,
Boris Pocatko

User avatar
Member
Member
Kristina - 8/9/2011 7:46:03 AM
   
RE:Using different Flash banners for different site sections
Thank you! I will try that out.