Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > "currentdocumentparent" in v.6 macros View modes: 
User avatar
Member
Member
jefferey.berger-ottawa - 8/30/2012 6:37:12 PM
   
"currentdocumentparent" in v.6 macros
Hi All,

I'm in the process of converting a site from 5.5_R2 to 6.0. In 5.5 I used the "currentdocumentparent" function a lot (probably more than I should've!) to control visibility.
Has these function changed from 5.5 to 6.0? I believe I'm replicating my macros exactly without any success.
Thanks,
Jeff

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/31/2012 6:09:55 AM
   
RE:"currentdocumentparent" in v.6 macros
Hello,

I've checked the 5.5R2 version however I couldn't get the system to resolve the {%currentdocumentparent%} macro. Are you sure this isn't a custom macro which you've developed by yourself?

Best regards,
Boris Pocatko

User avatar
Certified Developer 11
Certified Developer 11
maartenvdh-hotmail - 9/24/2012 4:56:55 PM
   
RE:"currentdocumentparent" in v.6 macros
Dear Jeff,

Probably you now know the answer by now, but it is: {%cmscontext.currentdocumentparent%}

Good luck,
Maarten