<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx</link><description>A problem I have been confronted serveral times is that authors have problems to save pages because the content of the page is refering to a resource gallery item that has been deleted in the past. Usually deleting such resource gallery items should not</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#188543</link><pubDate>Tue, 20 Jul 2004 18:49:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:188543</guid><dc:creator>Frank Joppe</dc:creator><description>Hi Stefan,&lt;br&gt;&lt;br&gt;I have this problem while adding a posting. The page has an attachment, this attachment is browsed for - a local resource. When saving the page, we get the same error.&lt;br&gt;&lt;br&gt;Do you have any ideas?</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#188544</link><pubDate>Tue, 20 Jul 2004 18:51:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:188544</guid><dc:creator>Stefan</dc:creator><description>This cannot be the same problem.&lt;br&gt;Does the page save if this attachment is not added?</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#188581</link><pubDate>Tue, 20 Jul 2004 19:20:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:188581</guid><dc:creator>Frank Joppe</dc:creator><description>Thank you for your quick answer. We have checked, it seems that the user did not have rights on certain templates. An unexpected situation, because last week she had no problems at all and we are the only ones touching the site manager. Regranting rights solved our problem, now everything works fine again.&lt;br&gt;</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#188630</link><pubDate>Tue, 20 Jul 2004 20:50:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:188630</guid><dc:creator>Tobias</dc:creator><description>We have expirienced a similar problem:&lt;br&gt;&lt;br&gt;If a uses an image from the resource gallery, and the image is deleted from the resource gallery, it is moved to an archived folder outside the normal channel/resource tree.&lt;br&gt;Thus only administrators have access rights - the posting (or rather, the image) can not even be viewed by anyone else, because they can not be subscribers.&lt;br&gt;</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#188633</link><pubDate>Tue, 20 Jul 2004 20:55:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:188633</guid><dc:creator>Stefan</dc:creator><description>Exactly this is covered with the code above.</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#189401</link><pubDate>Wed, 21 Jul 2004 11:20:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:189401</guid><dc:creator>RickG</dc:creator><description>Hi Stefan,&lt;br&gt;&lt;br&gt;When I try to use this code in my global.asax I get errors on the last portion of the code beginning with case &amp;quot;Src&amp;quot; (Invalid expression 'case').  Trying to correct it but I'm having difficulty getting around the errors.&lt;br&gt;&lt;br&gt;Also noticed one typo in 'case &amp;quot;Html&amp;quot;' where 'ropValue' might need to be 'propValue'.&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;RickG</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#189620</link><pubDate>Wed, 21 Jul 2004 18:05:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:189620</guid><dc:creator>Stefan</dc:creator><description>Hi Rick, &lt;br&gt;&lt;br&gt;you are right, there have been two typos: a brace &amp;quot;{&amp;quot; was missing and ropValue needed to be propValue. &lt;br&gt;&lt;br&gt;The code above is now correct. &lt;br&gt;&lt;br&gt;Cheers, &lt;br&gt;Stefan</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#190717</link><pubDate>Thu, 22 Jul 2004 08:04:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:190717</guid><dc:creator>Rick G</dc:creator><description>Thanks Stefan!</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#190724</link><pubDate>Thu, 22 Jul 2004 08:34:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:190724</guid><dc:creator>RickG</dc:creator><description>Hi Stefan,&lt;br&gt;&lt;br&gt;I have been testing this on my Test Server and have run into an error during a page Save while in Edit mode:&lt;br&gt;&lt;br&gt;***Save Placeholder Failed***&lt;br&gt;Exception has been thrown by the target of an invocation.&lt;br&gt;&lt;br&gt;I commented out your code and the Save works.  I'll let you know if I find the cause.  I do have other custom events in my app so it may be a conflict of some sort.</description></item><item><title>re: Automatically cleanup placeholder content after resource gallery items have been deleted</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#200768</link><pubDate>Fri, 30 Jul 2004 01:01:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:200768</guid><dc:creator>George Leithead</dc:creator><description>I too get the same problem as RickG, in that I get the &amp;quot;Exception has been thrown by the target of an invocation&amp;quot;.&lt;br&gt;&lt;br&gt;Anyone found out why this is yet, and a solution?</description></item><item><title>Dealing with links to deleted resources</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#378719</link><pubDate>Wed, 23 Feb 2005 12:36:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:378719</guid><dc:creator>Stefan Go</dc:creator><description /></item><item><title>re: Dealing with links to deleted resources</title><link>http://blogs.technet.com/stefan_gossner/archive/2004/07/07/175298.aspx#383539</link><pubDate>Wed, 02 Mar 2005 17:17:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:383539</guid><dc:creator>Stefan Go</dc:creator><description /></item></channel></rss>