Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Selected item transformation View modes: 
User avatar
Member
Member
wsutton-asset-intertech - 8/20/2013 4:42:25 PM
   
Selected item transformation
I have looked everywhere and I can not find any information on how Selected item transformation works. Can someone point me to information on how to you can select which form the transformation will work on.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 8/20/2013 6:32:36 PM
   
RE:Selected item transformation
Hello,

Could you please be more specific? You can see also nice working example in the the example Corporate site provided by Kentico as well as you can find some additional information in the Web Parts Guide -> Repeater.

Best Regards,
Martin Danko

User avatar
Member
Member
wsutton - 8/21/2013 8:56:30 AM
   
RE:Selected item transformation
Where is the Corporate site example? I have a repeating banner and I would like to use Selected item transformation to use a different transformation on one of the forms in this folder.

User avatar
Member
Member
wsutton - 8/21/2013 10:47:00 AM
   
RE:Selected item transformation
Considering my problem another way what if I rewrote my transformation to this?

<li>
<%# GetImage("Homepage_banner_image") %>
<div class="content">
<%# if (Eval("Homepage_banner_image") != 'isitreliable-w585-h395.png'){ %>
<h1 class="banner-heading"><%# LimitLength(Eval("Homepage_title"), 40 , "...") %></h1>
<h2><%# LimitLength(Eval("Homepage_strapline"), 165 , "...") %></h2>

<h3><%# Eval("Homepage_main_text") %></h3>

<a href="<%# Eval("Homepage_link")%>" class="wp-banner">Find Out More</a>
<%#} else { %>
<h1 class="banner-heading"><%# LimitLength(Eval("Homepage_title"), 40 , "...") %></h1>
<h2><%# LimitLength(Eval("Homepage_strapline"), 165 , "...") %></h2>

<h3><%# Eval("Homepage_main_text") %></h3>

<a href="<%# Eval("Homepage_link")%>" class="wp-banner">Watch Video</a>
<%#}%>
</div>
</li>

User avatar
Kentico Support
Kentico Support
kentico_filipl - 9/2/2013 3:55:19 AM
   
RE:Selected item transformation
Hello William,

Selected item transformation is applied when you click on one of the items rendered in Repeater web part and then you are redirected to this item and on the page you can see the transformation being displayed. As my colleague Martin already suggested, you can see this behaviour on sample Corporate Site for instance (which you can create as a new site in Site Manager -> Sites -> New site wizard -> Use website template -> Corporate Site) in News section.

As for the transformation you sent in your previous e-mail, I do not know what elements you need to display but in general, you can modify built-in transformations as you like. Some useful methods you can use in the code of ASCX transformations are mentioned in Context Help - Methods in transformations.

Best regards,
Filip Ligac