Tags:
create new tag
, view all tags

LogoPerWeb

each web should provide an easy way to customise its logo (and related things like url and alt text) instead of the twiki logo; the twiki logo should be reserved for the TWiki web.

WebLogo.png

adjusted TWikiPreferences settings

      * Set WIKILOGONAME = logo.png
      * Set WIKILOGOIMG = %PUBURL%/%BASEWEB%/%WEBPREFSTOPIC%/%WIKILOGONAME%
      * Set WIKILOGOURL = %SCRIPTURL%/view%SCRIPTSUFFIX%/%BASEWEB%/%HOMETOPIC%
      * Set WIKILOGOALT = %SEARCH{ "\* Set SITEMAPLIST \= on" regex="on" web="%BASEWEB%" topic="%WEBPREFSTOPIC%" nototal="on" nosearch="on" format=" $pattern(.*?\* Set SITEMAPUSETO\s*=([^\n\r]*).*) " }%

this could probably be enhanced to show a default logo if one hasn't been updated for a given web (say, the one from _default.WebPreferences/logo.png)

-- WillNorris - 07 Sep 2004, 23 Mar 2005

Perhaps the logo filename could be set too? = * Set WIKILOGONAME = MyCompanyLogo.jpg= for instance.

  • thanks, arthur. adjusted above -- WN - 15 Apr 2005

WIKILOGOIMG could then also be named WEBLOGOIMG.

-- ArthurClemens - 23 Mar 2005

are you suggesting that i should name the variables as follows instead?

      * Set WEBLOGONAME = logo.png
      * Set WEBLOGOIMG = %PUBURL%/%BASEWEB%/%WEBPREFSTOPIC%/%WIKILOGONAME%
      * Set WEBLOGOURL = %SCRIPTURL%/view%SCRIPTSUFFIX%/%BASEWEB%/%HOMETOPIC%
      * Set WEBLOGOALT = %SEARCH{ "\* Set SITEMAPLIST \= on" regex="on" web="%BASEWEB%" topic="%WEBPREFSTOPIC%" nototal="on" nosearch="on" format=" $pattern(.*?\* Set SITEMAPUSETO\s*=([^\n\r]*).*) " }%

probably seems like a better idea than "hijacking" the WIKILOGO variables. (for increased backwards compatability?) however, it does mean that skins and templates need to be updated, but this is a new feature and they probably should be updated and made sure this is properly integrated. either way, i'll be updating the ones checked into SVN.

-- WillNorris - 15 Apr 2005

For pattern skin, only the top bar needs to get updated.

-- ArthurClemens - 15 Apr 2005

is that a yes to use WEBLOGO instead of WIKILOGO? smile

-- WillNorris - 15 Apr 2005

Yes.

-- ArthurClemens - 15 Apr 2005

Will, how does WEBLOGOALT work?

-- ArthurClemens - 15 Apr 2005

it's essentially taken from SiteMap. it sets the ALT text to the web's SITEMAPUSETO variable.

-- WillNorris - 15 Apr 2005

Ah, I thought somehow it would fetch an alternative logo.

-- ArthurClemens - 15 Apr 2005

i'm not able to embed the search which retrieves the web's SITEMAPUSETO, so i'm just using the existing Home alt text

-- WillNorris - 25 May 2005

SVN 4324

-- WillNorris - 26 May 2005

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng WebLogo.png r1 manage 12.7 K 2005-04-15 - 08:40 WillNorris  
Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2005-05-26 - WillNorris
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.