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.
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?
--
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