[Moin-user] Wiki farm and FavIcon

Bradey Honsinger bradeyh at gmail.com
Wed Mar 11 16:06:37 EDT 2009


On Wed, Mar 11, 2009 at 11:03 AM, Bradey Honsinger <bradeyh at gmail.com> wrote:
> On Wed, Mar 11, 2009 at 9:56 AM, kai at aplteam.com <kai at aplteam.com> wrote:
>> Is there a way to make every wiki using it's own FavIcon?
>
> Web browsers use http://<server>/favicon.ico unless instructed
> otherwise, so unless your wikis use different domain names you can't
> give them different favicons using Apache configuration. You can
> specify the favicon inside the HTML using a <link> tag, though--I've
> successfully done that on some wikis I manage. Set html_head inside
> wikiconfig.py like this:
>
>    # favicon support (for both IE and FF)
>    html_head = u"""
>    <!-- for IE compatibility: -->
>    <link rel="shortcut icon"
>        type="image/x-icon"
>        href="/path/to/favicon.ico" />
>    <!-- for FF, newer browsers -->
>    <link rel="icon"
>        type="image/jpeg"
>        href="/path/to/favicon.png" />
>    """
>
> Firefox and IE use slightly different tags, and FF can use a PNG while
> IE needs a .ico file.

FWIW, the same basic info is in HelpMiscellaneous:

http://moinmo.in/HelpMiscellaneous#Adding_a_favicon_to_your_wiki_setup

  - Bradey




More information about the Moin-user mailing list