Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Need help with macro View modes: 
User avatar
Member
Member
merete-grape - 1/27/2011 1:18:38 PM
   
Need help with macro
Can't get this to work.....

{% Nodelevel (equals) 2 | {%cmscontext.currentdocumentparent.documentnamepath%}

whats wrong??

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 1/27/2011 3:45:31 PM
   
RE:Need help with macro
Hi,

could you please apply the latest hotfix for 5.5 version? Unfortunately, there was a bug related to nested macro resolving. I am sorry for inconvenience.

Addtionally, could you please change your code according to following example?

{(1)%nodelevel|(toint)0|(equals)2|(truevalue){(2)%cmscontext.currentdocumentparent.documentnamepath%(2)}|(falsevalue){(3)%cmscontext.currentdocument.documentnamepath%(3)}%(1)}

Best regards,
Ivana Tomanickova


Best regards,
Ivana Tomanickova

User avatar
Member
Member
merete-grape - 1/27/2011 4:50:23 PM
   
RE:Need help with macro
I run v5.0.3656

guess I have to upgrade, and apply hotfix to make it work then.....

... if so... I know what I have to do tomorrow :)

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 1/28/2011 3:07:24 AM
   
RE:Need help with macro
Hi,

yes, you are right. The upgrade will be needed in this case. The macro, I provided you should work then (I tested it and it was resolving correctly in my environment). So I hope it will work for you as well.

Best regards,
Ivana Tomanickova