Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Macro's View modes: 
User avatar
Member
Member
bill-w - 3/16/2011 10:19:16 AM
   
Macro's
Is their a way to set a default parameter using a macro or maybe a better way of doing this. I have a multi culture site and use the {%lang%} querystring macro to populate the where condition on my repeater to grab the culture when a link is clicked but English is default and the variable is blank when you go to that page from the menu. I was thinking you could do a macro in the where condition but had no luck.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/23/2011 9:36:56 AM
   
RE:Macro's
Hello,

I would recommend you to check this article about macros. You can also try to use the "(default) " keyword in the macro, for example:

'{%parameter|(default)2001-01-01%}'

This displays the date "2001-01-01" if the parameter is null.

Best regards,
Boris Pocatko