[xwiki-users] FavIcon
Hi, I am trying to include a FavIcon in my wiki and I've found this information, but it doesn't help me... Regards Yannick 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
Hello Yannick, First, go to the presentation section of the administration page. Add the following lines in the HTTP Meta Information : <link rel="icon" href="$xwiki.getSkinFile("favicon.ico")" type="image/x-icon"/> <link rel="shortcut icon" href="$xwiki.getSkinFile("favicon.ico")" type="image/x-icon"/> Then, visit the XWiki.DefaultSkin page and attach a favicon.ico file. Finally, the most important, refresh your browser cache. Hope this help. Maxime 2011/5/1 Yannick Dewilde <[email protected]>
Hi,
I am trying to include a FavIcon in my wiki and I've found this information, but it doesn't help me...
Regards
Yannick
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 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Is this still the best approach? Thanks, Patrick -- View this message in context: http://xwiki.475771.n2.nabble.com/FavIcon-tp6321607p7588176.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Patrick, On 29 Nov 2013 at 21:04:57, pmasson ([email protected]) wrote: Is this still the best approach? I think so. Would be great to add a FAQ entry at http://www.xwiki.org/xwiki/bin/view/FAQ/ for this as a first step. Then I think it would be nice to make this easier to do… Would be nice if someone could open a jira issue for this on http://jira.xwiki.org Thanks -Vincent Thanks, Patrick -- View this message in context: http://xwiki.475771.n2.nabble.com/FavIcon-tp6321607p7588176.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Thanks Vincent. I've created a FAQ for this and added the instructions from the thread: http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+add+a+favicon+for+my+wiki%3... However, I am not sure the instructions provide the detail needed to walk me through the process... /First, go to the presentation section of the administration page. / 1. Logged in as an administrator, I go to the "WIKI: xwiki" menu and down to "Administer Wiki." 2. I then go to "Presentation" under the "Look and Feel" tab on the left hand navigation (http://[mywikidomain].xwiki.com/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin§ion=Presentation) /Add the following lines in the HTTP Meta Information :/ /<link rel="icon" href="$xwiki.getSkinFile("favicon.ico")"// //type="image/x-icon"/> <link rel="shortcut icon"// //href="$xwiki.getSkinFile("favicon.ico")" type="image/x-icon"/>/ 1. I cannot find the HTTP Meta Information on the presentation section of the administration page. 2. The only fields available are: 1. Skin Customize = XWiki.DefaultSkin 2. Stylesheet = style.css 3. Stylesheets = style.css /Then, visit the XWiki.DefaultSkin page and attach a favicon.ico file./ 1. I have been able to upload my favicon to the XWiki.DefaultSkin page (http://[mywikidomain].xwiki.com/xwiki/bin/view/XWiki/DefaultSkin) by going to "ADD" in the menu bar and clicking "Attachment to page." The icon is viewable at http://[mywikidomain].xwiki.com/xwiki/bin/download/XWiki/DefaultSkin/favicon.png /Finally, the most important, refresh your browser cache. / Thanks, Patrick On 11/29/2013 05:52 PM, [email protected] wrote:
Hi Patrick,
On 29 Nov 2013 at 21:04:57, pmasson ([email protected] <mailto://[email protected]>) wrote:
Is this still the best approach?
I think so.
Would be great to add a FAQ entry at http://www.xwiki.org/xwiki/bin/view/FAQ/ for this as a first step.
Then I think it would be nice to make this easier to do… Would be nice if someone could open a jira issue for this on http://jira.xwiki.org
Thanks
-Vincent
Thanks, Patrick
-- View this message in context: http://xwiki.475771.n2.nabble.com/FavIcon-tp6321607p7588176.html Sent from the XWiki- Users mailing list archive at Nabble.com.
-- || | | |||| || || | |||| ||| | ||| Patrick Masson General Manager, Director & Secretary to the Board Open Source Initiative 855 El Camino Real, Ste 13A, #270 Palo Alto, CA 94301 United States Sk: massonpj Ph: (970) 4MASSON Em: [email protected] <mailto:[email protected]> Ws: www.opensource.org <http://www.opensource.org>
Hi Patrick, On 30 Nov 2013 at 05:41:20, Patrick Masson ([email protected]) wrote: Thanks Vincent. I've created a FAQ for this and added the instructions from the thread: http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+add+a+favicon+for+my+wiki%3... Thanks, I’ve edited it to beautify it a bit ;) However, I am not sure the instructions provide the detail needed to walk me through the process... /First, go to the presentation section of the administration page. / 1. Logged in as an administrator, I go to the "WIKI: xwiki" menu and down to "Administer Wiki." so far so good... 2. I then go to "Presentation" under the "Look and Feel" tab on the left hand navigation (http://[mywikidomain].xwiki.com/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladmin§ion=Presentation) You should go to the “Page Elements” section (in the past this was under the Presentation section but it’s been moved to “Page Elements”, which is located just under the “Presentation” section). Hope it helps, -Vincent /Add the following lines in the HTTP Meta Information :/ /<link rel="icon" href="$xwiki.getSkinFile("favicon.ico")"// //type="image/x-icon"/> <link rel="shortcut icon"// //href="$xwiki.getSkinFile("favicon.ico")" type="image/x-icon"/>/ 1. I cannot find the HTTP Meta Information on the presentation section of the administration page. 2. The only fields available are: 1. Skin Customize = XWiki.DefaultSkin 2. Stylesheet = style.css 3. Stylesheets = style.css /Then, visit the XWiki.DefaultSkin page and attach a favicon.ico file./ 1. I have been able to upload my favicon to the XWiki.DefaultSkin page (http://[mywikidomain].xwiki.com/xwiki/bin/view/XWiki/DefaultSkin) by going to "ADD" in the menu bar and clicking "Attachment to page." The icon is viewable at http://[mywikidomain].xwiki.com/xwiki/bin/download/XWiki/DefaultSkin/favicon.png /Finally, the most important, refresh your browser cache. / Thanks, Patrick On 11/29/2013 05:52 PM, [email protected] wrote:
Hi Patrick,
On 29 Nov 2013 at 21:04:57, pmasson ([email protected] <mailto://[email protected]>) wrote:
Is this still the best approach?
I think so.
Would be great to add a FAQ entry at http://www.xwiki.org/xwiki/bin/view/FAQ/ for this as a first step.
Then I think it would be nice to make this easier to do… Would be nice if someone could open a jira issue for this on http://jira.xwiki.org
Thanks
-Vincent
Thanks, Patrick
-- View this message in context: http://xwiki.475771.n2.nabble.com/FavIcon-tp6321607p7588176.html Sent from the XWiki- Users mailing list archive at Nabble.com.
-- || | | |||| || || | |||| ||| | ||| Patrick Masson General Manager, Director & Secretary to the Board Open Source Initiative 855 El Camino Real, Ste 13A, #270 Palo Alto, CA 94301 United States Sk: massonpj Ph: (970) 4MASSON Em: [email protected] <mailto:[email protected]> Ws: www.opensource.org <http://www.opensource.org> _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi, The "new FAQ" works perfectly when Firefox browser is used => my new favicon is displayed ;-). But when accessing the Wiki with Internet Explorer or Chrome => XWiki standard favicon is displayed; maybe because at the top of all wiki pages there is: Where these line are coming from? Because I assume their removal will solve the wrong favicon displayed for some browsers. regards, -- View this message in context: http://xwiki.475771.n2.nabble.com/FavIcon-tp6321607p7588186.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, Forget my last reply => everything is fine now (without any changes); ie my new favicon is displayed in all browsers. Even if I though I have deleted my browsers caches yesterday some old data were still there for the favicon ;-) but now they are gone! Best regards, Le 01/12/2013 00:24, xrichard a écrit :
Hi,
The "new FAQ" works perfectly when Firefox browser is used => my new favicon is displayed ;-).
But when accessing the Wiki with Internet Explorer or Chrome => XWiki standard favicon is displayed; maybe because at the top of all wiki pages there is:
Where these line are coming from? Because I assume their removal will solve the wrong favicon displayed for some browsers.
regards,
-- View this message in context: http://xwiki.475771.n2.nabble.com/FavIcon-tp6321607p7588186.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (7)
-
Ldm Public -
Le Génie -
Patrick Masson -
pmasson -
vincent@massol.net -
xrichard -
Yannick Dewilde