<%# 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