Can subwiki logo link point to main wiki?

Last modified by Vincent Massol on 2017/05/22

By default when clicking on the logo in top left part of the screen, you're redirected to the main page of the current wiki.

If, instead, you'd like to link to the main wiki when on a subwiki, you'd need to do the following:

  • Go to this subwiki's Administration and edit the active skin.
  • Add a companylogo.vm template property.
  • Copy paste the default content of your companylogo.vm vm. You can get it by going to http://<server>/xwiki/bin/skin/skins/flamingo/companylogo.vm.
  • Replace the following:
    <a href="$!xwiki.getURL($services.wiki.currentWikiDescriptor.mainPageReference)" ...

    with:

    <a href="$!xwiki.getURL($services.wiki.mainWikiDescriptor.mainPageReference)" ...

Note that this means that when XWiki changes the companylogo.vm in the future, you won't be able to benefit from the change unless you do a manual merge with your custom content.

Tags:
   

Get Connected