# HG changeset patch # User Rabah Meradi # Date 1433344508 -7200 # Node ID a1cc6788e9de6fe9a53f5f5190f81ad4789f9550 # Parent ad0cea3ab2186823304e8363531d84eab210249f [doc] how to change logo using css diff -r ad0cea3ab218 -r a1cc6788e9de doc/book/en/annexes/faq.rst --- a/doc/book/en/annexes/faq.rst Wed Jun 03 17:17:29 2015 +0200 +++ b/doc/book/en/annexes/faq.rst Wed Jun 03 17:15:08 2015 +0200 @@ -104,21 +104,17 @@ How to change the instance logo ? --------------------------------- -There are two ways of changing the logo. - -1. The easiest way to use a different logo is to replace the existing - ``logo.png`` in ``myapp/data`` by your prefered icon and refresh. - By default all instance will look for a ``logo.png`` to be - rendered in the logo section. +The logo is managed by css. You must provide a custom css that will contain +the code below: - .. image:: ../images/lax-book_06-main-template-logo_en.png +:: + + #logo { + background-image: url("logo.jpg"); + } -2. In your cube directory, you can specify which file to use for the logo. - This is configurable in ``mycube/uiprops.py``: :: - LOGO = data('mylogo.gif') - - ``mylogo.gif`` is in ``mycube/data`` directory. +``logo.jpg`` is in ``mycube/data`` directory. How to create an anonymous user ? ---------------------------------