Hi Helix 

Thank you.

Regards,
Lewatle



-----Original Message-----
From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: 22 February 2011 04:10 PM
To: Lewatle Phaladi
Cc: Shaun Donovan; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] change image on browser tap

For the Mirage theme it's here:
[dspace]/webapps/xmlui/themes/Mirage/images/favicon.ico

For the Reference theme:
I tried to put in to /dspace/webapps/xmlui/static/ but it didn't work from here 
(the file wasn't reachable at the /favicon.ico URL).
You have to add the a link tag directly to the HTML source. Do that by 
overriding the "buildHead" template. in your custom theme - e.g. add this to 
the template:

            <link rel="shortcut icon">
                <xsl:attribute name="href">
                    <xsl:value-of
select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]"/>
                    <xsl:text>/themes/</xsl:text>
                    <xsl:value-of
select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='theme'][@qualifier='path']"/>
                    <xsl:text>/images/favicon.ico</xsl:text>
                </xsl:attribute>
            </link>

And add your favicon.ico file to
[dspace]/webapps/xmlui/themes/Reference/images/

Don't forget to restart tomcat (just to be sure), clear your browser's cache 
completely, restart your browser (tested with Firefox) and then load the DSpace 
page.

Regards,
~~helix84

<html><p><font face = "verdana" size = "0.8" color = "navy">This communication 
is intended for the addressee only. It is confidential. If you have received 
this communication in error, please notify us immediately and destroy the 
original message. You may not copy or disseminate this communication without 
the permission of the University. Only authorized signatories are competent to 
enter into agreements on behalf of the University and recipients are thus 
advised that the content of this message may not be legally binding on the 
University and may contain the personal views and opinions of the author, which 
are not necessarily the views and opinions of The University of the 
Witwatersrand, Johannesburg. All agreements between the University and 
outsiders are subject to South African Law unless the University agrees in 
writing to the contrary.</font></p></html>
------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to