Site Logo

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
3/24/2009 4:39:56 AM
Gravatar
Total Posts 12

Site Logo

Something I definitely miss which is not difficult to implement at all is a site logo. I want to have a logo displayed to the left (or maybe right justified) of the Site Name/Heading. Currently it only supports text by means of some kind of custom control named SiteTitle.

If I edit the layout.Master page to add a logo to the left then it gets displayed outside the heading area, ideally it would be a property of SiteTitle to also set an optional logo image.

That would really be fantastic because just adding it to the left of <portal:SiteTitle ...> does not work around the lack of logo support.

3/24/2009 9:21:28 AM
Gravatar
Total Posts 51

Re: Site Logo

Are you saying you already attempted to add the logo control to your master page?  There's a page about it in the documentation, not sure if this is what you already tried or not:

http://www.mojoportal.com/whereisthesitelogo.aspx

alternately, in my implementation I started with a skin that supports a split header that has a left image, then repeating right image.  From that baseline, it was easy to integrate the logo as the left image.

just a couple thoughts, good luck.

Kevin

3/24/2009 10:15:57 AM
Gravatar
Total Posts 12

Re: Site Logo

Hey thanks half a million Kevin, that is indeed good information. I was trying with simple HTML but it was not showing the image for reasons unknown to me. I also have caching problems, even when I clear the cache and restart the app I don't see my changes until some strange condition ocurrs and then suddently they are there.

Anyway, I followed the instructions (pity about all this secret settings) but the logo does not properly integrate into the site heading (see http://www.coralys.com/). I placed it just before the <portal:SiteTitle> control but that does not render well. I may need to hack it with a custom style for margins but that is not what I would like to do. That is why I think the image should be a property of SiteTitle.

3/24/2009 11:24:29 AM
Gravatar
Total Posts 18439

Re: Site Logo

No matter how the image gets in there it still requires css to position it as you would like. The image needs to fit with the rest of the design. The reason most of the included skins don't have a logo is because the design did not have one and there is no way to add arbitrary logos and expect them to look right with the design.

Most likely cause of things not updating is if the cache is not being invalidated. The system tries to write empty text files that are used to invalidate the cache. If folder permissions ar enot right it may not be able to write the files and therefore may fail to invalidate the cache.

Look in /Data/Sites/[SiteID]/systemfiles

make sure the web process can write to and/or create that folder.

Hope it helps,

Joe

3/24/2009 2:47:28 PM
Gravatar
Total Posts 12

Re: Site Logo

thanks 4 the cache info, will look into that...

As for the site logo I really don't see what is so difficult about it as I have done that in the past. Obviously we cannot expect any arbitrary image to fit there but that is exactly why one imposes constraints such as:

  • If SiteTitle.Image property is not set no logo is displayed, otherwise it is
  • Image is restricted to a size of (X,Y) pixels which is a constraint of the site heading.

The site title is just an enlarged text string and something like this could be done:

    <div class="xxx"><img src="~/.../logos/sitelogo.gif" align="left" /><span class="...">SITE TITLE</span></div>

Anyway something along those lines, it is very common to display images inline with text. Obviously some cssClass attributes would be applied to these items. It is very flexible and provided the user follows the restrictions of image size everything would be OK. Otherwise users have to hack up the layout.Master (which is not really an optimal way) and on every upgrade then the user has to hack away the same thing. Likewise, if the user changes themes another layout.Master has to be changed. Whereas if this is solved in the <portal:SiteTitle> web control then it would work the say way for all themes.

 

 

3/24/2009 2:57:33 PM
Gravatar
Total Posts 18439

Re: Site Logo

Hi,

Kevin already gave you the link about our SiteLogo control, please read the documentation.

If you are making a custom skin you can put a SiteLogo control in your layout.master file and drop your logo file(s) into the /Data/Sites/[SiteID]/logos folder

<portal:SiteLogo id="SiteLogo" runat="server"></portal:SiteLogo>

typically you either use that or:

<portal:SiteTitle id="SiteTitle" runat="server"></portal:SiteTitle>

See jsavard-mojoportal for an example skin that uses it SiteLogo

Note that whether using an image or text or both, you really want an h1 for your site title not just a div or span with style applied.

Css applied has to be specific to the design and the logo.

Hope it helps,

Joe

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