Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > how to get parent document url View modes: 
User avatar
Member
Member
pavel.1991-tut - 11/21/2013 9:10:34 AM
   
how to get parent document url
I'm using transformation in my own document type. How to get parent document url in this transformation? I know how to get url of current document(<%# GetDocumentUrl() %>), but I do not know how to get parent document url. Thanks.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 11/21/2013 2:20:40 PM
   
RE:how to get parent document url
Try this to get the current page you are navigating to
<%# CurrentDocument.Parent.NodeAliasPath %>

Try this to get the current page being rendered
<%# Document.Parent.NodeAliasPath %>