|
Home > Archive > Microsoft Content Management Server > November 2006 > Deleting or Replacing a resource
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Deleting or Replacing a resource
|
|
|
| Whay happens to my CMS Posting if I replace an existing resource? Does the
page automaticazlly get updated?
And what happens if I delete a resource from the gallery? Does the page
show a broken link and what happens to my "Page Reverts"? Are they still in
tack.
Basically, I am looking for advice on how to manage resources in CMS.
Thanks
Tom
| |
| William Cornwill 2006-09-07, 7:34 pm |
| Tom,
1. When you replace a resource in a Gallery any postings that reference the
resource will automatically have the new resource.
2. When you delete an image from the resource gallery that is referenced by
a posting it is shifted to an internal archive folder (not accessable in Site
Manager or PAPI). The resource is still viewable on the posting by
Administrators, however non-administrators will be prompted for credentials.
Regards,
William Cornwill
"Tom" wrote:
> Whay happens to my CMS Posting if I replace an existing resource? Does the
> page automaticazlly get updated?
>
> And what happens if I delete a resource from the gallery? Does the page
> show a broken link and what happens to my "Page Reverts"? Are they still in
> tack.
>
> Basically, I am looking for advice on how to manage resources in CMS.
>
> Thanks
>
> Tom
| |
| Stefan [MSFT] 2006-09-08, 7:22 am |
| Hi Tom,
1) when a resource is replaced using the replace function automatically each
postings will get a new revision with the new item. You don't have to do
anything.
2) you should avoid this! This will lead to broken links for
non-administrators and in addition all postings referencing this deleted
resource gallery item will be exported over and over again when running
incremental site deployment. The reason is that the deletion of the resource
triggers a site deployment operation. As the resource is deleted it cannot
be exported and this causes the posting to be exported over and over again
as the resource that triggered the export is never exported.
So only delete resource gallery items which are not used by published
revisions of any posting.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
"Tom" <Tom@discussions.microsoft.com> wrote in message
news:1AF995EF-DE4E-4F6E-A3DD-267FF2C916F9@microsoft.com...
> Whay happens to my CMS Posting if I replace an existing resource? Does
> the
> page automaticazlly get updated?
>
> And what happens if I delete a resource from the gallery? Does the page
> show a broken link and what happens to my "Page Reverts"? Are they still
> in
> tack.
>
> Basically, I am looking for advice on how to manage resources in CMS.
>
> Thanks
>
> Tom
| |
|
| Stefan:
While I understand, it seems like a bug in CMS. Can you submit this to 'dev
team' so they can fix this Site Deployment problem?
Thanks
Tom
"Stefan [MSFT]" wrote:
> Hi Tom,
>
> 1) when a resource is replaced using the replace function automatically each
> postings will get a new revision with the new item. You don't have to do
> anything.
>
> 2) you should avoid this! This will lead to broken links for
> non-administrators and in addition all postings referencing this deleted
> resource gallery item will be exported over and over again when running
> incremental site deployment. The reason is that the deletion of the resource
> triggers a site deployment operation. As the resource is deleted it cannot
> be exported and this causes the posting to be exported over and over again
> as the resource that triggered the export is never exported.
> So only delete resource gallery items which are not used by published
> revisions of any posting.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
>
> "Tom" <Tom@discussions.microsoft.com> wrote in message
> news:1AF995EF-DE4E-4F6E-A3DD-267FF2C916F9@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2006-09-11, 1:24 pm |
| Hi Tom,
this behaviour is by design. Site Deployment does not work reliable for
inconsistant databases.
Deleting a resource gallery items which is still in use is an unexpected
database inconsistancy.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
"Tom" <Tom@discussions.microsoft.com> wrote in message
news:63A38530-80B4-48A3-9AE1-393A797AF606@microsoft.com...[vbcol=seagreen]
> Stefan:
>
> While I understand, it seems like a bug in CMS. Can you submit this to
> 'dev
> team' so they can fix this Site Deployment problem?
>
> Thanks
>
> Tom
>
> "Stefan [MSFT]" wrote:
>
| |
|
| Hi,
I have an issue related: when a resource is deleted from the resource
gallery, and an author edits a page that was using that resource. If user
saves the posting, an error is lunched (save placeholder fails).
Is there any way to give authors access to the "Archive Folder"?
Is there any way to know if the resource is being used by any published
posting, in order to show an alert before deleting it?
Thanks
"William Cornwill" wrote:
[vbcol=seagreen]
> Tom,
>
> 1. When you replace a resource in a Gallery any postings that reference the
> resource will automatically have the new resource.
>
> 2. When you delete an image from the resource gallery that is referenced by
> a posting it is shifted to an internal archive folder (not accessable in Site
> Manager or PAPI). The resource is still viewable on the posting by
> Administrators, however non-administrators will be prompted for credentials.
>
> Regards,
>
> William Cornwill
>
> "Tom" wrote:
>
| |
| Stefan Goßner [MSFT] 2006-11-16, 1:16 pm |
| Hi,
non administrator users cannot access the Archive Folder. This folder can
only be accessed by administrators.
Yes:
http://www.gotdotnet.com/Community/...f2-bf283edb9159
http://www.gotdotnet.com/Community/...82-62454711b309
Cheers,
Stefan
"ETX" <ETX@discussions.microsoft.com> wrote in message
news:852200F5-6146-4A95-8D70-73488B052DB6@microsoft.com...[vbcol=seagreen]
> Hi,
> I have an issue related: when a resource is deleted from the resource
> gallery, and an author edits a page that was using that resource. If user
> saves the posting, an error is lunched (save placeholder fails).
> Is there any way to give authors access to the "Archive Folder"?
> Is there any way to know if the resource is being used by any published
> posting, in order to show an alert before deleting it?
>
> Thanks
>
> "William Cornwill" wrote:
>
| |
|
| Stefan,
I have tried your dll, but I am getting no results. i am using the guid of a
resource that is used in two published postings, but it returns 0 items. This
is my code:
Dim objResourceManager As New StefanG.Tools.CheckResourceDependencies
Dim AppContext As CmsApplicationContext = New CmsApplicationContext
AppContext.AuthenticateAsUser(User, Password, PublishingMode.Update)
Dim LinkRes As Resource =
CType(AppContext.Searches.GetByGuid(strResGuid), Resource)
Dim depPostings As System.Collections.Specialized.StringCollection
depPostings = objResourceManager.GetDependendPosting(AppContext,
LinkRes)
depPostings returns 0 items. Any idea?
"Stefan Goßner [MSFT]" wrote:
> Hi,
>
> non administrator users cannot access the Archive Folder. This folder can
> only be accessed by administrators.
>
> Yes:
> http://www.gotdotnet.com/Community/...f2-bf283edb9159
>
> http://www.gotdotnet.com/Community/...82-62454711b309
>
> Cheers,
> Stefan
>
>
> "ETX" <ETX@discussions.microsoft.com> wrote in message
> news:852200F5-6146-4A95-8D70-73488B052DB6@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2006-11-16, 1:16 pm |
| Hi,
did you use the credentials of a MCMS administrator?
It will only work with administrator credentials.
Cheers,
Stefan
"ETX" <ETX@discussions.microsoft.com> wrote in message
news:223FE761-E49A-4EF2-AF66-EAFDBBB74E5C@microsoft.com...[vbcol=seagreen]
> Stefan,
>
> I have tried your dll, but I am getting no results. i am using the guid of
> a
> resource that is used in two published postings, but it returns 0 items.
> This
> is my code:
>
> Dim objResourceManager As New
> StefanG.Tools.CheckResourceDependencies
>
> Dim AppContext As CmsApplicationContext = New CmsApplicationContext
> AppContext.AuthenticateAsUser(User, Password,
> PublishingMode.Update)
> Dim LinkRes As Resource =
> CType(AppContext.Searches.GetByGuid(strResGuid), Resource)
> Dim depPostings As System.Collections.Specialized.StringCollection
> depPostings = objResourceManager.GetDependendPosting(AppContext,
> LinkRes)
>
> depPostings returns 0 items. Any idea?
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
|
| Yes, I am using a MCMS administrator user
"Stefan Goßner [MSFT]" wrote:
> Hi,
>
> did you use the credentials of a MCMS administrator?
> It will only work with administrator credentials.
>
> Cheers,
> Stefan
>
>
> "ETX" <ETX@discussions.microsoft.com> wrote in message
> news:223FE761-E49A-4EF2-AF66-EAFDBBB74E5C@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2006-11-16, 1:16 pm |
| Hi,
then it should work.
Did you check the standalone tool as well?
Did you get any output for the resources?
Cheers,
Stefan
"ETX" <ETX@discussions.microsoft.com> wrote in message
news:6FCE4EEB-CC8E-46F1-ACBB-EE25B6DFFF18@microsoft.com...[vbcol=seagreen]
> Yes, I am using a MCMS administrator user
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
|
| Hi Stefan,
I tried the tool and it returns results, but the resource I have used in
several pages returns 0 dependant pages:
-------------------------------------
Path: /Resources/WorkLifeManagementtools/Images/Husa2003.jpg
Page Count: 0
-------------------------------------
Could I take a look to the source code of the tool or dll in order to find
the issue?
Thanks
"Stefan Goßner [MSFT]" wrote:
> Hi,
>
> then it should work.
> Did you check the standalone tool as well?
> Did you get any output for the resources?
>
> Cheers,
> Stefan
>
>
> "ETX" <ETX@discussions.microsoft.com> wrote in message
> news:6FCE4EEB-CC8E-46F1-ACBB-EE25B6DFFF18@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2006-11-20, 7:25 am |
| Hi ETX,
the answer is no.
It uses internal functions.
Does the tool return other dependencies or does it return 0 for all
resources?
Cheers,
Stefan
"ETX" <ETX@discussions.microsoft.com> wrote in message
news:8DA076DB-0FEA-4E77-8EBA-6715E2859AF0@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> I tried the tool and it returns results, but the resource I have used in
> several pages returns 0 dependant pages:
> -------------------------------------
> Path: /Resources/WorkLifeManagementtools/Images/Husa2003.jpg
> Page Count: 0
> -------------------------------------
> Could I take a look to the source code of the tool or dll in order to find
> the issue?
>
> Thanks
>
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
|
| Hi,
I recieve dependencies for other resources, but I cannot see the difference
between those resources and mines. Should I check any property?
Thanks
"Stefan Goßner [MSFT]" wrote:
> Hi ETX,
>
> the answer is no.
> It uses internal functions.
>
> Does the tool return other dependencies or does it return 0 for all
> resources?
>
> Cheers,
> Stefan
>
>
> "ETX" <ETX@discussions.microsoft.com> wrote in message
> news:8DA076DB-0FEA-4E77-8EBA-6715E2859AF0@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2006-11-20, 1:16 pm |
| Hi,
sounds more as if this items isn't used.
Maybe it is a different one which looks the same?
Did you check the GUID?
Cheers,
Stefan
"ETX" <ETX@discussions.microsoft.com> wrote in message
news:8C60407A-9250-43A3-94A5-C339E4CA8638@microsoft.com...[vbcol=seagreen]
> Hi,
>
> I recieve dependencies for other resources, but I cannot see the
> difference
> between those resources and mines. Should I check any property?
>
> Thanks
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
|
| Yes, I did.
Perhaps i am doing something wrong. This is how I am testing.
1.- I add an image to a resource gallery: img.gif -> sitegallery/images
2.- Use the image in a posting, save and approve the posting.
3.- In my application: retreive the resource using the guid, check that the
image is the one I am using in my posting (img.gif) and execute the
GetDependendPosting method.
depPostings = objResourceManager.GetDependendPosting(AppContext,
LinkRes)
If i use the guid of other resource, it returns results, but not with mine.
Can you identify anything to make it return 0 result?
Thanks
"Stefan Goßner [MSFT]" wrote:
> Hi,
>
> sounds more as if this items isn't used.
> Maybe it is a different one which looks the same?
> Did you check the GUID?
>
> Cheers,
> Stefan
>
>
> "ETX" <ETX@discussions.microsoft.com> wrote in message
> news:8C60407A-9250-43A3-94A5-C339E4CA8638@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2006-11-21, 1:18 pm |
| Hi,
no sounds all correct.
How did you get the GUID?
Cheers,
Stefan
"ETX" <ETX@discussions.microsoft.com> wrote in message
news:91132B7E-0066-446C-82DA-5C5F520E009C@microsoft.com...[vbcol=seagreen]
> Yes, I did.
> Perhaps i am doing something wrong. This is how I am testing.
> 1.- I add an image to a resource gallery: img.gif -> sitegallery/images
> 2.- Use the image in a posting, save and approve the posting.
> 3.- In my application: retreive the resource using the guid, check that
> the
> image is the one I am using in my posting (img.gif) and execute the
> GetDependendPosting method.
> depPostings = objResourceManager.GetDependendPosting(AppContext,
> LinkRes)
> If i use the guid of other resource, it returns results, but not with
> mine.
> Can you identify anything to make it return 0 result?
>
> Thanks
>
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
|
| Hi,
I open the posting in live mode, then rightclick on the image, slect
properties and get the GUID from the address.
i.e.
http://localhost/NR/rdonlyres/6240A...AB9/0/Image.jpg
GUID= {6240A864-1239-41EA-AB80-46C5253E0AB9}
Regards
"Stefan Goßner [MSFT]" wrote:
> Hi,
>
> no sounds all correct.
> How did you get the GUID?
>
> Cheers,
> Stefan
>
>
> "ETX" <ETX@discussions.microsoft.com> wrote in message
> news:91132B7E-0066-446C-82DA-5C5F520E009C@microsoft.com...
>
>
>
| |
| Stefan Goßner [MSFT] 2006-11-22, 7:24 am |
| Ok, sounds good.
This should work.
If not - no idea. Then you can't use this module.
Cheers,
Stefan
"ETX" <ETX@discussions.microsoft.com> wrote in message
news:1A79D84E-A657-4CF5-883F-BF11B3C55CB4@microsoft.com...[vbcol=seagreen]
> Hi,
> I open the posting in live mode, then rightclick on the image, slect
> properties and get the GUID from the address.
> i.e.
> http://localhost/NR/rdonlyres/6240A...AB9/0/Image.jpg
> GUID= {6240A864-1239-41EA-AB80-46C5253E0AB9}
>
> Regards
>
> "Stefan Goßner [MSFT]" wrote:
>
| |
|
| ok, I'll look for another solution
Many thanks for your help.
"Stefan Goßner [MSFT]" wrote:
> Ok, sounds good.
> This should work.
> If not - no idea. Then you can't use this module.
>
> Cheers,
> Stefan
>
>
> "ETX" <ETX@discussions.microsoft.com> wrote in message
> news:1A79D84E-A657-4CF5-883F-BF11B3C55CB4@microsoft.com...
>
>
>
|
|
|
|
|