I'm wondering if I'm very dense, or if using the site logo (portalSettings.CustomSettings["SITESETTINGS_LOGO"]) is no longer workable? A lot of the layouts do not use this setting, and so I'm inclined to believe that it worked at one time, but now does not.
DesktopLayouts such as "MenuTop" use this, and it seems like a good idea for future layouts too. However, when I put an image file name in there, the path which gets built does not seem to be renderable. Looking in HeaderImage.cs, we find: this.ImageUrl =
PortalSettings.ApplicationPath + portalSettings.PortalPath + "/" + portalSettings.CustomSettings["SITESETTINGS_LOGO"].ToString(); This results in an image URL like this: http://rainbow2.cappsnet.com/portal/alias__rainbow2.cappsnet/lang__en-US/tabID__3327/Design/DesktopLayouts/MenuTop/rainbow_2/test.jpg
(note that rainbow_2 is the site directory for this test site) Ouch! I don't see how the browser would ever be able to render that, unless I'm mising some key bit of knowledge here. I'd like to modify the code to produce a more normal URL such as the two below:
#1 - http://rainbow2.cappsnet.com/Design/DesktopLayouts/MenuTop/rainbow_2/test.jpg #2 - http://rainbow2.cappsnet.com/rainbow_2/images/test.jpg #1 keeps the same layout structure the current code appears to be trying to do. I don't like this for several reasons:
A) Philosophically, I don't think that the design layout's directory should contain anything specific to a given website. B) There is no handy way for a site admin to add/remove graphics from this directory #2 allows the image to be kept in the site's normal
repository, and modules such as "image" allow uploads to that directory. I don't want to break anybody's website, so if the current code is actually workable somehow, please let me know before I dig in and propose the mods above.
Tim - Here is what I see as far as this path goes: I entered "images/test.gif" as the logo path in Theme and layout settings. When executed the following values show in HeaderImage class: PortalSettings.ApplicationPath "/Rainbow" string portalSettings.PortalPath
"/_Rainbow" string portalSettings.CustomSettings["SITESETTINGS_LOGO"] Value "images/test.gif" string this.ImageUrl then equals: "/Rainbow/_Rainbow/images/test.gif" The image displays properly in the skin and when moused over the path to the image is: http://localhost/Rainbow/_Rainbow/images/test.gif
On a production server the path would be: http://[domain name]/_Rainbow/images/test.gif Is this working differently for you?
Hmm, it seems from what you describe that it does in fact work. I must be doing something wrong! Ok, that's good in a way. Now that I know it's something I'm doing, I'll dig harder. Thanks! Tim
None
0 Points
13 Posts
Site Logo
Mar 22, 2004 12:45 AM|timcapps|LINK
Cheers,
Tim
Member
20 Points
102 Posts
Re: Site Logo
Mar 22, 2004 10:03 AM|daveranck|LINK
Whatever your hand finds to do, do it with all your might
www.fitnessforeveryman.com
everymansfitness.wordpress.com
None
0 Points
13 Posts
Re: Site Logo
Mar 22, 2004 03:12 PM|timcapps|LINK
Cheers,
Tim