tag:blogger.com,1999:blog-7384653670825187633.post7146797713409713825..comments2024-01-18T05:01:51.538-08:00Comments on Ivan on Software: Master Page Deployment Through FeaturesIvan Neganovhttp://www.blogger.com/profile/17959856507854938011noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-7384653670825187633.post-78029158952598969502008-11-24T10:26:00.000-08:002008-11-24T10:26:00.000-08:00Thanks Mark. You are right, the feature does updat...Thanks Mark. You are right, the feature does update everything blindly in a given folder. Unless you've got there already, if I were to enhance it now then I would start building the logic around calls to <A HREF="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.checkoutstatus.aspx" REL="nofollow">SPListItem.File.CheckOutStatus</A> and <A HREF="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.moderationinformation.aspx" REL="nofollow">SPListItem.ModerationInformation</A> properties.<BR><BR/>As for using the single feature to do both page creation and publishing, I wasn't able to get around by simple waiting on a thread. If you find a solution would be great to hear!Ivan Neganovhttps://www.blogger.com/profile/17959856507854938011noreply@blogger.comtag:blogger.com,1999:blog-7384653670825187633.post-22266389999637538742008-11-24T04:35:00.000-08:002008-11-24T04:35:00.000-08:00I also have a small problem with your second Featu...I also have a small problem with your second Feature that goes through and Approves the documents. This problem is that the feature will approve ALL documents in the library, not just the ones we have updated.<BR/><BR/>I am trying to find a way of Publishing and Approving in the same bit of code, but as you said, have not had much luck so far.<BR/><BR/>I am still trying to figure out the solution without resorting to a second feature and will update if I find anything.<BR/><BR/>Mark<BR/><A HREF="http://SharePointStudio.com" REL="nofollow">http://sharepointstidio.com</A>Mark Stokeshttps://www.blogger.com/profile/06359908173937775199noreply@blogger.comtag:blogger.com,1999:blog-7384653670825187633.post-26479114593630892842008-11-21T06:03:00.000-08:002008-11-21T06:03:00.000-08:00Great post. Thanks for this. I have been having ...Great post. Thanks for this. I have been having this problem trying to update my page layouts through a feature.<BR/><BR/>With regards to the Approval, can you create a while loop that keeps ticking over until the check in process is complete, and when it is sorted run the approval code?<BR/><BR/>I guess we might need to put a timer on it in case something goes wrong.<BR/><BR/>Mark Stokes<BR/>http://sharepointstudio.comMark Stokeshttps://www.blogger.com/profile/06359908173937775199noreply@blogger.com