Question
I want to be able to click on a logo and have it take me to a website. I see in the top tool bar that this is done, but I can't figure out how it is working. Any assitance would be greatly appreciated.
Environment
--
DanielDowlin - 14 Dec 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
TWiki's top bar is built sing a configurable path to the image and URL:
- The actual variables which are used in the templates are
WEBLOGOIMG, WEBLOGOURL, and WEBLOGOALT. For TWiki's default layout (defined in TWiki.PatternSkin), you can see the usage in TWiki.WebTopBar, or better in that topic's raw view.
- These values are initialized in TWiki.TWikiPreferences to the values of
WIKILOGOIMG, WIKILOGOURL, and WIKILOGOALT, respectively.
So to apply individual per-web settings, define the
WEB* values in the
webs' WebPreferences topic. To change the site-wide default,
override the
WIKI* variables in Main.TWikiPreferences
(Main.TWikiPreferences takes precedence over TWiki.TWikiPreferences
and should always be used for site customization)
--
HaraldJoerg - 14 Dec 2007
Thank you. I looked at the
WebTopBar topic, but I didn't think to check the raw view. I actually took what I got from the raw view and created a variable for it so I can use it all over the web. Thanks again.
--
DanielDowlin - 14 Dec 2007