How to retrieve a parent document field value

HelenaG Grulichova asked on February 10, 2011 03:08

How to retrieve a parent document field value

Correct Answer

HelenaG Grulichova answered on February 10, 2011 03:08

You can use a context macro for this purpose. I can look like this:

{%cmscontext.currentdocumentparent.YourField%}

Furthermore, should you want to use it within any transformation, you will need to call it with Macro Resolver:

<%# CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{%cmscontext.currentdocumentparent.YourField%}") %>

Links to other resources: Macro expressions

-ov-

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.