Hi,
I had a problem with Path resolution not working properly for parent documents. Tech support confirmed this as a bug, so I thought I'd just list it here for reference, including a quick work around:
I was trying to use the CMSViewer to display the document name of a parent item.
If i use the Path /%, all documents are displayed, so the transformation code itself is working. I can also manually determine which document I want to display, e.g. with /Village-Homes But I cannot seem to display documents using a relative path such as .. or../ or ../% as suggested in the documentation. Tech support confirmed that this a bug that is being fixed at the moment.
In the meantime, I wrote a dirty little function that provides a work around. Rather than setting the Path to '..', I determine the parent's path with the following function:
public string parentPath()
{
// store the current page's path in a string
string strCurrentPath = CMSCurrentPage.Path.ToString();
// shave off the last path node of the current page's path:
return strCurrentPath.Substring(0,strCurrentPath.LastIndexOf('/'));
}
The returned string can then be used to set the path for a control.
Hope this helps someone running their head against a similar wall...
Rgds,
Mike