Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

creating folders used by web part in sharepoint

  Asked By: Akeem    Date: Nov 16    Category: Sharepoint    Views: 1573

I'm trying to create a folder that holds images for a series of web
parts. I thought I could simply create a 'images' folder in the
root ('c:\inetpub\wwwroot\images') and have the web part load the
image through an IMG tag. This could be used by
http://localhost/images/<imagename>. Kind of like ASP.NET.

I found that the only place I can add an image that my web part is
able to find is -
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\60\TEMPLATE\LAYOUTS\1033\IMAGES
I can load the image by using:

output.WriteBeginTag("IMG");
output.WriteAttribute("src","/_layouts/images/Pic.png");
output.Write(HtmlTextWriter.TagRightChar);
output.WriteEndTag("IMG");

If I try to use another folder SharePoint is unable to find the
image file. I'd like to be able to separate my custom images (non-
stock SharePoint images) in a separate folder. Does anyone know how
to do this?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Dakota Shaffer     Answered On: Nov 16

You could exclude a managed path in WSS Central Admin -> Configure Virtual Server Settings -> Define Managed Paths-> Exclude the path (make sure and use the /), create  a virtual directory on the same virtual server ( with the same excluded name) in IIS and put the images  there. Like, exclude portal.msft/images and then create an images virtual directory Check out this link, there is a demo for excluding managed paths, just scroll down to item 20, by Suraj Poozhiyil. www.microsoft.com/.../manifest.xml&rate=2 Ben Curry Scuba Instructor (and sharepoint  guy, go figure...) nitrox-diver@... --- On Tue 09/20, newscooter_2000 scott.hayman@... > wrote: From: newscooter_2000 [mailto: scott.hayman@...] To: sharepointdiscussions@yahoogroups.com Date: Tue, 20 Sep 2005 16:10:26 -0000 Subject: [sharepointdiscussions] creating  folders used by web  part in sharepoint I'm trying to create a folder  that holds images for a series  of web
parts. I thought  I could simply create a 'images' folder in the
root ('c:\inetpub\wwwroot\images') and have the web part  load the
image through an IMG tag. This could be used by
http://localhost/images/. Kind of like ASP.NET.

found  that the only place  I can add  an image  that my web part is
able to find  is -
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\60\TEMPLATE\LAYOUTS\1033\IMAGES
I can load  the image by using:

output.WriteBeginTag("IMG");
output.WriteAttribute("src","/_layouts/images/Pic.png");
output.Write(HtmlTextWriter.TagRightChar);
output.WriteEndTag("IMG");

If I try to use another folder SharePoint is unable  to find the
image file. I'd like to be able to separate  my custom  images (non-
stock SharePoint images) in a separate folder. Does anyone know how
to do this?

 
Didn't find what you were looking for? Find more on creating folders used by web part in sharepoint Or get search suggestion and latest updates.




Tagged: