[Mailman-Users] icon location and defaults

Mark Sapiro msapiro at value.net
Thu Oct 27 23:02:01 CEST 2005


Dr. Scott S. Jones wrote:

>What controls icons and whether they display or not? It seems that when I am
>at my office, the three icons at the bottom of the mailman admin page
>display, but when accessing it remotely, they do NOT display. 


The first control is the Defaults.py/mm_cfg.py setting for IMAGE_LOGOS.
The default is IMAGE_LOGOS = '/icons/'. If IMAGE_LOGOS = 0, no icons
will be displayed.

With the default setting, the generated HTML tag for the mailman logo is

<img src="/icons/mailman.jpg" alt="Delivered by Mailman" border=0>

and similarly for the other logos. This means the browser will look in
the host's document root directory for the /icons/ directory and
therein for the logo files, or if /icons/ is aliased to another
directory in the web server, the icon files should be in the aliased
directory.

If you see the logos from your office but not from home, perhaps you
are not using the same URL (host name part) to access the pages or
perhaps there are access controls on the icons directory that only
allow access from your office network.


>Also, where is the icon for the URL, which is supposed to display when
>domain.com/mailman/whatever is loaded, the left of the address? On my
>system, I just have the Mambo orange flower showing for everything, whether
>Mambo, Mailman, or other web apps. 


Again, the generated html contains

<LINK REL="SHORTCUT ICON" HREF="/icons/mm-icon.png">

where the /icons/ part comes from the IMAGE_LOGOS setting and the
mm-icon.png part comes from the SHORTCUT_ICON setting. with most
browsers, this will display the mm-icon.png image next to the URL.

So the key to all of this is to make sure that all 5 .jpg and .png
files (or at least 4 - mailman-large.jpg isn't used) from Mailman's
icons/ directory are copied to a web accessible directory (usually the
same one that already contains the web server's icons) and that
IMAGE_LOGOS specifies the correct base path of the directory or a path
which is aliased to the directory.

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list