Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > k# help View modes: 
User avatar
Member
Member
lwhittemore-emh - 11/1/2013 2:33:27 PM
   
k# help
<%# CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{% string[] x = ((CurrentDocument.NodeAliasPath).Split(\"/\")); return x[0] %}") %>


I am trying to do this in a transformation to get the first part of the nodealias path..... is there a better way because this is not working

User avatar
Kentico Support
Kentico Support
kentico_janh - 11/2/2013 3:33:44 AM
   
RE:k# help
Hello,

Please try this instead:

<%# CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("{% x = ((CurrentDocument.NodeAliasPath).Split(\"/\")); return x[0] %}


Best regards,
Jan Hermann