robert-tailor.co
-
8/3/2012 12:22:56 AM
What is CMSContext.CurrentDocument.DocumentUrlPath and why isn't it always populated?
Hi,
What is the best way to reliably get the requested document's "Live URL" in both the CMSDesk and live site?
I have a number of documents for which I need their 'Live' URL, and I thought this could be retrieved using CMSContext.CurrentDocument.DocumentUrlPath. But this often comes out with an empty string.
So, what is CMSContext.CurrentDocument.DocumentUrlPath, what does it reference, and why is it sometimes empty?
And what is the best way to retrieve the document's "Live URL" path displayed in the document's Properties->General tab in CMSDesk?
Thanks.
|