Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Conditional Transformations View modes: 
User avatar
Member
Member
AlgarveWeb - 5/16/2011 11:13:16 AM
   
Conditional Transformations
Hi

How can I assign a Transformation at runtime?

Lets say I have Product A and Product B and have created 2 different Details Transformations which should be showing only when A or B is selected.

Many thanks, Mike

User avatar
Member
Member
AlgarveWeb - 5/16/2011 11:20:49 AM
   
RE:Conditional Transformations
I forgot to say that every product has a unique CategoryID and each Category has his own Transformation, therefore a Macro would be good I think eg Product A which has CategoryID = 1 would get a Transformation called 1.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 5/18/2011 3:20:54 AM
   
RE:Conditional Transformations
Hi,

In Portal engine, you can use macros in webpart properties, therefore it's possible to use standard or custom macro in Transformation name field, that will be resolved at runtime.

Standard macros can be used rather for multiple document types and their different transformations, like:

{%classname%}.default

For more complex logic, custom macro will be probably better.

--Zdenek