Please note that this post was migrated to my new blog platform. There may be bad formating, broken links, images, downloads and so on. If you need an item on this page, please contact me and I will do my best to get it from my backups.
With the previous release of The MiXX Collection, it was updated to work with CS 2007. Well there is a bug in CS 2007’s CSModule that no longer allows updating the ExtendedAttributes after a post is created. <?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>
In other words, the bug in the PostIcon that was introduced with 1.0 release caused a 0.jpg PostIcon to be saved at times and not propertly updating the WeblogPost object.
Download: As always, you can download the latest version and source from the file gallery.
This release, version 1.1, resolves this issue with a performance penalty work-around. But due to the changes and protection in the CSModules, there isn’t any other way. The work-around is during a CreatePost event, we don’t write the ExtendedAttributes on the PrePost CSModule event (since we do not have the PostID any longer). Instead, I hook into the AfterPost event that fires, after the post has been created, to obtain the PostID. This fires off an UpdatePost method to write the entire post to the DB – again.<o:p></o:p>
Don’t worry, this is only during the first initial CreatePost event. If you go back and Update a post, it fires normally – that is only 1 time because we now have a PostID during the PrePost event to write to the ExtendedAttributes. <o:p></o:p>
I’m open to suggestions if someone else has a cleaner solution. It all comes down to not being able to update/write to the ExtendedAttributes during the AfterPost (PostPost) CSModule event. I’ve mentioned it for years, there should be a method to save the ExtendedAttributes without having to update the entire object.
And as always, bookmark this link for updates: /archive/tags/The+MiXX+Collection/default.aspx You can also access the RSS option in there to subscribe via RSS as well.