image wont show up in other site

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
1/14/2013 6:34:39 AM
Gravatar
Total Posts 28

image wont show up in other site

I have copied the the layout.master file into second site , everything works as site 1 except for the image at the top of the page. I have gone through the image folder and the image is in the correct folder .

1/14/2013 9:09:42 AM
Gravatar
Total Posts 18439

Re: image wont show up in other site

Most like you hard coded an image path in your layout.master and the path is not correct in the other site or the image it refers to is not correct.

We have a convenience control built in to reference images in the skin folder without hard coding the path

<portal:SkinFolderImage id="myImage" runat="server" ImageFileName="myimage.png" />

The above is if the imager is in the skin folder iteself, if the image was in a subfolder named images belwo the skin folder then it would be like this:

<portal:SkinFolderImage id="myImage" runat="server" ImageFileName="images/myimage.png" />

This is helpful to make skins portable to another site by copying the entire skin folder. Copying only layout.master would not be sufficient since that doesn' include the image.

Hope that helps,

Joe

1/14/2013 9:54:52 AM
Gravatar
Total Posts 28

Re: image wont show up in other site

Hi Joe,

 

I have already moved all file over including the images folder . Where in layout master does this code need to be ?

 

1/14/2013 9:57:22 AM
Gravatar
Total Posts 18439

Re: image wont show up in other site

It would replace the hard coded html for an image so it would go wherever the origianl img element was.

You must sign in to post in the forums. This thread is closed to new posts.