ASPX templates
Version 4.x > ASPX templates > publish View modes: 
User avatar
Member
Member
kentico - 12/24/2009 12:55:50 PM
   
publish
i want to limit the publish button clicks. can i get some help on this and also where can i find the button click event for the publish

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 12/29/2009 3:30:29 AM
   
RE:publish
Hello,

You can ensure required functionality in btnApprove_Click method in ~\CMSDesk\Content\edit.aspx.cs file.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
kentico - 12/30/2009 9:40:19 AM
   
RE:publish
Thanks for the response can you please direct me on how to proceed with functionality as i'm new to kentico

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 1/4/2010 4:02:44 AM
   
RE:publish
Hello,

Could you please describe in more details what exact functionality you want to ensure? What exactly should be limited?

Best Regards,

Martin Dobsicek

User avatar
Member
Member
kentico - 1/4/2010 8:01:16 AM
   
RE:publish
Hi Martin,

adjusting the workflow by disallowing multiple publishes within a short time period

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 1/19/2010 6:10:04 AM
   
RE:publish
Hello,

You could optionally create custom table with 2 columns - in one column you would store ID of document and in the second one you would store date of last publishing. Then you could check date every time user tries to publish particular document and if it is short time period you wouldn't publish document, otherwise you would publish document and store current date into custom table for this document.

Best Regards,

Martin