I have added a background image on one of my pages, which displays fine when I am within the server environment. Externally, the image does not show. I've tried adding all sorts of permissions to the virtual directory and to the web folder; and to folder holding the media to be displayed. I'm not sure what else I can do.
I have figured it out --- instead of using css / html to get an image to display (background-image:url(http://localhost/filestorage/searchback.gif);) --- upload the image through the media gallery. Notice the URL of the image: LOCALHOST --- that is why it is not viewable for external users.
To get an image to display using the MediaGallery use:
<CSControl:PlaceHolder> <CSMedia:MediaGalleryPostList ID="MediaGalleryPostList1" runat="server"> <QueryOverrides ID="QueryOverrides1" runat="server" PostID="46" /> <ItemTemplate> <CSMedia:MediaGalleryPostViewer ID="MediaGalleryPostViewer1" runat="server" ViewType="Preview" Width="220" Height="175" /><br /> </ItemTemplate> </CSMedia:MediaGalleryPostList>
Firstly, how have you uploaded the image to your server - is it stored the CS Filestore or is it a normal file in your webspace. Secondly, if you browse directly to the picture, does the picture itself show?
CS Documentation - now available in downloadable PDF form
My CS Site
Its a big problem
hl911.com hap5.cn hapgoo.com
CSS wise, you could always use
background-image:url(/filestorage/searchback.gif)
The browser will intepret the first slash to be the root of your website - e.g. localhost, www.mydomain.com
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com