|
Home > Archive > Microsoft Content Management Server > May 2005 > Posting Last Published Date Property Available?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Posting Last Published Date Property Available?
|
|
| HokieRTP 2005-05-18, 6:00 pm |
| I need to retrieve the Posting's Last Published Date, IE the date the posting
was last approved for display on the posting. Created Date gives me the date
the posting was created, Last Modified Date, gives me the last date the
posting was modified regardless which is a problem if the posting has been
updated, but not approved yet. If this is the case, the date it was updated
is now displayed, but I just want to show the date the posting was last
approved. Any ideas as to where I can pull this property?
TIA!
| |
| Stefan [MSFT] 2005-05-19, 7:47 am |
| Hi Hokie,
MCMS does not have a property to get this information.
What you could do is to create a custom property for this and update this
custom property in the CmsPosting_Approving event handler with the current
time.
That would do what you are looking for.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"HokieRTP" <HokieRTP@discussions.microsoft.com> wrote in message
news:2BBCE702-6BA1-4E46-AAC3-0EED2FF5A605@microsoft.com...
>I need to retrieve the Posting's Last Published Date, IE the date the
>posting
> was last approved for display on the posting. Created Date gives me the
> date
> the posting was created, Last Modified Date, gives me the last date the
> posting was modified regardless which is a problem if the posting has been
> updated, but not approved yet. If this is the case, the date it was
> updated
> is now displayed, but I just want to show the date the posting was last
> approved. Any ideas as to where I can pull this property?
>
> TIA!
| |
|
| I haven't tried this myself, but perhaps try using the Revisions method of the given posting; which returns each revision of the particular posting as a PostingCollection. Since each revision should appear as a posting object, you should be able to loop
through the collection; checking the state of each "revision" and then looking at its last modified date.
HTH.
> I need to retrieve the Posting's Last Published Date, IE the date the
> posting was last approved for display on the posting. Created Date
> gives me the date the posting was created, Last Modified Date, gives
> me the last date the posting was modified regardless which is a
> problem if the posting has been updated, but not approved yet. If
> this is the case, the date it was updated is now displayed, but I
> just want to show the date the posting was last approved. Any ideas
> as to where I can pull this property?
>
> TIA!
>
|
|
|
|
|