Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Weeknum macro View modes: 
User avatar
Member
Member
olsina-centrum - 7/20/2009 9:14:17 AM
   
Weeknum macro
I have trouble with a macro for displaying the number of week in a webpart title.

i tried to search for a builtin macro, however i don't know how to format the currentdate macro for my needs.

so i made a custom macro, but the macro isn't working. when i type {#macroname#} in the title, it shows macroname in the title, not the string from the resolve function...

any ideas how to solve this problem?

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 7/20/2009 2:48:01 PM
   
RE:Weeknum macro
Hi,

Could you please let us know were exactly are you inserting your custom macro?

Best Regards,
Miroslav Remias

User avatar
Member
Member
olsina-centrum - 7/21/2009 4:09:56 AM
   
RE:Weeknum macro
in the Title of Webpart containter

User avatar
Member
Member
kentico_pavelk - 7/23/2009 7:35:44 AM
   
RE:Weeknum macro
Hi,

Could you please post the code of your custom macro here? I tried to use custom macro in web part container title and it worked well.

Best Regards,
Pavel Knotek

User avatar
Member
Member
olsina-centrum - 7/23/2009 7:57:34 AM
   
RE:Weeknum macro
it was my mistake, the name of the macro in the case block was written with uppercase character. it couldn't work, because the expression is lowercased in the switch statement... thank you anyway