Need to search resource galleries
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Need to search resource galleries




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Need to search resource galleries  
Rob


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-07 12:19 AM

After migrating from CMS 2001 to 2002, we had to reassign all
permissions.  In a few instances, we missed the resource galleries
needed for each user.  As a result, an error is thrown when an update
is attempted if the posting includes a resource in a gallery that is
inaccessible to the editor. This is resolved when we add the user's
access to the proper gallery.

It is difficult to identify which gallery contains a random resource.
Is there a way to search resource galleries or trace a resource
(image, PDF, etc.) back to its container/gallery?






[ Post a follow-up to this message ]



    Re: Need to search resource galleries  
Stefan Goßner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-07 12:17 PM

Hi Rob,

the resource contains the GUID in the URL.
You can use Searches.GetByGuid using the GUID from the URL (you need to add
the braces before and after) to get the item. Then check the Path property
of the item to get the location.

Cheers,
Stefan


"Rob" <saxon_rm@mercer.edu> wrote in message
news:1184794211.770560.24390@g12g2000prg.googlegroups.com...
> After migrating from CMS 2001 to 2002, we had to reassign all
> permissions.  In a few instances, we missed the resource galleries
> needed for each user.  As a result, an error is thrown when an update
> is attempted if the posting includes a resource in a gallery that is
> inaccessible to the editor. This is resolved when we add the user's
> access to the proper gallery.
>
> It is difficult to identify which gallery contains a random resource.
> Is there a way to search resource galleries or trace a resource
> (image, PDF, etc.) back to its container/gallery?
>







[ Post a follow-up to this message ]



    Re: Need to search resource galleries  
Rob


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-07 06:17 PM

Thanks, Stefan, but I need some further specifics.

I'm brand new to .Net and C# coding.  I tried the process you
suggested but my search only returns a null. Any pointers??

Here is my code:
// sample GUID pasted to text box: FD5022B7-9DF6-4DEA-
A45F-674538E2C22B
private void Button1_Click(object sender, System.EventArgs e)
{
CmsHttpContext cmsContext =3D CmsHttpContext.Current;
String strResourceGUID =3D "{" + txtGUID.Text.ToString() + "}";
Resource rsResource =3D
cmsContext.Searches.GetByGuid(strResourceGUID) as Resource;
if (rsResource !=3D null)
{
txtOutput.Text =3D rsResource.Path.ToString();
}
else
{
txtOutput.Text =3D "No Resource Found!!";
}
}

On Jul 19, 2:44 am, "Stefan Go=DFner [MSFT]"
<stef...@online.microsoft.com> wrote:
> Hi Rob,
>
> theresourcecontains the GUID in the URL.
> You can useSearches.GetByGuidusing the GUID from the URL (you need to add
> the braces before and after) to get the item. Then check the Path property
> of the item to get the location.
>
> Cheers,
> Stefan
>
> "Rob" <saxon...@mercer.edu> wrote in message
>
> news:1184794211.770560.24390@g12g2000prg.googlegroups.com...
>
>
> 
> 
>
> - Show quoted text -







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:51 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register