lenya-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Schöpf <rainer.scho...@gmx.net>
Subject Re: Adding favicons to Lenya RELEASE_2_0_4
Date Tue, 02 Oct 2012 19:01:12 GMT
On Tue, 2 Oct 2012 at 18:34 +0100, Emyr Tomos wrote:

 > I have tried everything to gain control over the favicons in lenya
 > with no success. The normal masking behaviour per publication has not
 > worked, and I have followed the instructions here :
 > http://markmail.org/message/37zfk5pxa6wevhvt#query:+page:1+mid:37zfk5pxa6wevhvt+state:results
 > with no success
 > basically I added
 >         <link rel="SHORTCUT ICON" type="image/x-icon"
 > href="{$root}/images/colet.ico"/>
 > to the publication page2xhtml.xsl and added
 >       <map:match pattern="*/*/**colet.ico">
 >         <map:read src="pubs/{1}resources/shared/favicon.ico"

There is a "/" missing immediately after "{1}", ie.

 <map:read src="pubs/{1}/resources/shared/favicon.ico" mime-type="image/x-icon"/>

You should use the fallback: protocol anyway. This will first look inside the 
publication directory and then in the global resources directory.

 > I have also looked at
 > http://lenya.apache.org/docu20/standardmodules/resourcemodulesection/resourcemoduleoverview.html#N10085
 > , and at the Wyona website, but there is nothing there to say how to
 > make them directly addressable as part of a publication.

Here is what I do: add a case for files with a names like *.ico to the 
         <!-- matches pub-id/area/images/*.ico -->
      <map:match pattern="*/*/images/*.ico">
        <map:read src="fallback://resources/shared/images/{3}.ico" mime-type="image/x-icon"

(Note: I did this in the resources.xmap file for the publication in question, 


but it will work in the global resources-shared.xmap file as well.)

Put the favicon into the images directory, e.g.,


and reference it via

  <LINK href="http://www.dante.de/images/myicon.ico" type="image/ico" rel="SHORTCUT ICON">


To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org

View raw message