Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'd like to get the node CreateDate from within my .ascx file. The node is not published though so I can't use a NodeFactory.
Thanks in advance,Mark
Hi Mark,
If you know the id of the document, use
var doc = new Document(idOfDocument); var createDate = doc.CreateDateTime;
Hope this helps.
Regards,
/Dirk
But be aware of using this code snippet if you're working in the frontend, as it will hit your db more than you'd like it to...
Cheers,
Thanks for the solution and for the warning.
--Mark
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Get unpublished document's create date from a usercontrol
I'd like to get the node CreateDate from within my .ascx file. The node is not published though so I can't use a NodeFactory.
Thanks in advance,
Mark
Hi Mark,
If you know the id of the document, use
Hope this helps.
Regards,
/Dirk
But be aware of using this code snippet if you're working in the frontend, as it will hit your db more than you'd like it to...
Cheers,
/Dirk
Thanks for the solution and for the warning.
--Mark
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.