Hello,
When using the Page Selector input control for a custom Page Type, what transformation method and/or properties can be used to get the SEO friendly page URL of the selected page from the Page Selector?
<%# GetDocumentUrl("CustomColumnName", Eval("NodeAliasPath")) %> seems to return a permanent path with the GUID in the returned URL.
<%# GetDocumentUrl("CustomColumnName", Eval("NodeAliasPath")) %>
<%# GetDocumentUrl("CustomColumnName") %> and <%# GetDocumentUrl(Eval("CustomColumnName")) %> seem to return nothing/empty string.
<%# GetDocumentUrl("CustomColumnName") %>
<%# GetDocumentUrl(Eval("CustomColumnName")) %>
<%# GetUrl(GetDocumentUrl("CaseStudyResource", Eval("NodeAliasPath")), Eval("DocumentUrlPath")) %> seems to return path prefixed with get /CMSPages/~~/getdoc and also has the GUID in the return URL.
<%# GetUrl(GetDocumentUrl("CaseStudyResource", Eval("NodeAliasPath")), Eval("DocumentUrlPath")) %>
/CMSPages/~~/getdoc
Thank you for any help you can provide in generating a friendly link from the page selected in Page Selector of a custom Page Type. The goal is to provide a link to a selected document/page, if there is a different input control that should be used for this purpose, that could work great also.
I was able to use the URL Selector control instead of the Page Selector. It was exactly what I need to get the SEO friendly URL of the selector page/document.
Please, sign in to be able to submit a new answer.