 Rank: Newbie
Joined: 5/19/2008 Posts: 2 Location: East Grinstead
|
Hi,
I'm new to Umbraco and i'm trying to extend the dashboard with a tab showing content pages that have been 'saved and send to publish' by content authors but have yet to be published.
I've created a user control to do this and I am able to iterate through all the documents of the entire content tree but I am unsure of how to ascertain the status of each document.
Does anyone know what property I need to check to see if a document has been saved and sent for publication.
Cheers, Andy
|
 Rank: Newbie
Joined: 5/19/2008 Posts: 2 Location: East Grinstead
|
I've dug into the code and database and as far as I can see clicking the 'send to publish' button is the same as just saving the page except a notification is triggered i.e. no flag is set to indicate that the page has been 'sent to be published' as this doesn't exist.
To get round this I created a couple fo classes inheriting the IActionHandler interface. The first reacts when the 'ActionToPublish' action is fired and the document id of the page is recorded in a custom table. My usercontrol can then query this table to locate any pages that have been sent to be published and display them as a link which when clicked goes to the edit page of the document. The second class reacts to the ActionPublish, ActionDelete and ActionUpdate actions and when fired checks the custom table for the document id and removes it if it is there.
This appears to be working o.k. but does anyone have any thoughts on this as a solution or has any suggestions as to how this could be done.
|
Rank: Newbie
Joined: 6/19/2008 Posts: 2 Location: Hawaii
|
I'm having the same issue. I noticed that there is a umbraco.cms.businesslogic.web.Published property but that doesn't seem to work as the Send for Approval button seems to Publish the document. Is there any other easier solutions?
|