Re: [xwiki-users] favicon integration
Does anyone know how to do this for the toucan skin? Sam ~~~~~~~~~~~~~~ In fact, I did it in the "Informations Meta HTTP" of the preferences and it worked. Thank you for the answers 2007/12/6, Sergiu Dumitriu <sergiu at xwiki.com>: Sylvain Desbureaux wrote: Hi, I don't manage to put a favicon for xwiki. Any clues ? Well, a favicon is usually placed in the root of the URL, like www.myserver.com/favicon.ico Doing that in a java webapp container usually involves adding that file not to the xwiki webapp, but to the ROOT webapp. In tomcat, there is a ROOT directory inside webapps. Another solution is to put something like this in webapps/xwiki/skins/ albatross/htmlheader.vm: <link rel="icon" href="$xwiki.getSkinFile("favicon.png")" type="image/ png"/> <link rel="shortcut icon" href="$xwiki.getSkinFile("favicon.png")" type="image/png"/> and put a favicon.png (you can change the name, if you want) in webapps/xwiki/skins/albatross If you're not using the albatross skin, change the path accordingly. Sergiu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xwiki.org/pipermail/users/attachments/20071206/27bb23b8/attachm...
Samuel Lee wrote:
Does anyone know how to do this for the toucan skin?
Sam
~~~~~~~~~~~~~~
In fact, I did it in the "Informations Meta HTTP" of the preferences and it worked.
Thank you for the answers
2007/12/6, Sergiu Dumitriu <sergiu at xwiki.com>:
Sylvain Desbureaux wrote:
Hi, I don't manage to put a favicon for xwiki. Any clues ?
Well, a favicon is usually placed in the root of the URL, like www.myserver.com/favicon.ico
Doing that in a java webapp container usually involves adding that file not to the xwiki webapp, but to the ROOT webapp. In tomcat, there is a ROOT directory inside webapps.
Another solution is to put something like this in webapps/xwiki/skins/ albatross/htmlheader.vm:
<link rel="icon" href="$xwiki.getSkinFile("favicon.png")" type="image/ png"/> <link rel="shortcut icon" href="$xwiki.getSkinFile("favicon.png")" type="image/png"/>
and put a favicon.png (you can change the name, if you want) in webapps/xwiki/skins/albatross
If you're not using the albatross skin, change the path accordingly.
The same thing applies, but the htmlheader.vm file is located in webapps/xwiki/templates/ -- Sergiu Dumitriu http://purl.org/net/sergiu/
But I'm running multiple xwikis on my server using an xwiki farm. I want this favicon to apply only to one of the xwikis. Is there any way to specify the favicon for just the one xwiki? Sam On Feb 25, 2009, at 11:20 AM, Sergiu Dumitriu wrote:
Samuel Lee wrote:
Does anyone know how to do this for the toucan skin?
Sam
~~~~~~~~~~~~~~
In fact, I did it in the "Informations Meta HTTP" of the preferences and it worked.
Thank you for the answers
2007/12/6, Sergiu Dumitriu <sergiu at xwiki.com>:
Sylvain Desbureaux wrote:
Hi, I don't manage to put a favicon for xwiki. Any clues ?
Well, a favicon is usually placed in the root of the URL, like www.myserver.com/favicon.ico
Doing that in a java webapp container usually involves adding that file not to the xwiki webapp, but to the ROOT webapp. In tomcat, there is a ROOT directory inside webapps.
Another solution is to put something like this in webapps/xwiki/ skins/ albatross/htmlheader.vm:
<link rel="icon" href="$xwiki.getSkinFile("favicon.png")" type="image/ png"/> <link rel="shortcut icon" href="$xwiki.getSkinFile("favicon.png")" type="image/png"/>
and put a favicon.png (you can change the name, if you want) in webapps/xwiki/skins/albatross
If you're not using the albatross skin, change the path accordingly.
The same thing applies, but the htmlheader.vm file is located in webapps/xwiki/templates/
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Samuel Lee wrote:
But I'm running multiple xwikis on my server using an xwiki farm. I want this favicon to apply only to one of the xwikis. Is there any way to specify the favicon for just the one xwiki?
Yes, you can. Instead of changing htmlheader.vm, edit the "HTTP Meta Information" field and add the two links: <link rel="icon" href="$xwiki.getSkinFile("favicon.png")" type="image/png"/> <link rel="shortcut icon" href="$xwiki.getSkinFile("favicon.png")" type="image/png"/> If you have a newer instance of XWiki Enterprise, one which has the new Administration UI, this field is found under Administration -> Administrate wiki -> Presentation. If not, then edit the XWiki.XWikiPreferences document using the object editor. To upload the image, look at the value for the "Skin" property (found at the same place as the meta property). That should be the name of the current skin, which is either the name of a skin (albatross, toucan) or the name of a wiki document (XWiki.DefaultSkin). If it is the name of a skin, replace it with XWiki.DefaultSkin (and save). If it is already a document name, go to that document and upload your icon file as an attachment.
On Feb 25, 2009, at 11:20 AM, Sergiu Dumitriu wrote:
Samuel Lee wrote:
Does anyone know how to do this for the toucan skin?
Sam
~~~~~~~~~~~~~~
In fact, I did it in the "Informations Meta HTTP" of the preferences and it worked.
Thank you for the answers
2007/12/6, Sergiu Dumitriu <sergiu at xwiki.com>:
Sylvain Desbureaux wrote:
Hi, I don't manage to put a favicon for xwiki. Any clues ?
Well, a favicon is usually placed in the root of the URL, like www.myserver.com/favicon.ico
Doing that in a java webapp container usually involves adding that file not to the xwiki webapp, but to the ROOT webapp. In tomcat, there is a ROOT directory inside webapps.
Another solution is to put something like this in webapps/xwiki/ skins/ albatross/htmlheader.vm:
<link rel="icon" href="$xwiki.getSkinFile("favicon.png")" type="image/ png"/> <link rel="shortcut icon" href="$xwiki.getSkinFile("favicon.png")" type="image/png"/>
and put a favicon.png (you can change the name, if you want) in webapps/xwiki/skins/albatross
If you're not using the albatross skin, change the path accordingly. The same thing applies, but the htmlheader.vm file is located in webapps/xwiki/templates/
-- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Samuel Lee -
Sergiu Dumitriu