On 08/09/2010, at 03:56, Sam Gandhi wrote:
> On Tue, Sep 7, 2010 at 1:05 PM, Alvaro Lopez Ortega <[email protected]> 
> wrote:
>> On 07/09/2010, at 21:57, Sam Gandhi wrote:
>> 
>>> What I wanted to find out is there way to insert header/footer
>>> contents for every file that is served out by cherokee web server.
>>> 
>>> I know if I had static HTML files I could use the server-side includes
>>> and specify things <!--#include virtual="banner.html" -->  but is
>>> there such a thing I can include while browsing the directory
>>> structure?
>> 
>> You can write a dirlist theme. Cherokee installs three by default, but you 
>> can create as many as you want. Simply, copy one of the directories with 
>> another name, and customize it to fit your needs.
>> 
>> The theme directories are located under $prefix/share/cherokee/themes, 
>> usually /usr/share/cherokee/themes.
> 
> What if that file is .png, jpg file do I need to write explicit rules
> for those files as well?

That applies to directory listing only.

> Also what statements out of the config file below actually pick the
> theme default v/s firefox for example?
> With these themes installed I can see the default cherokee theme, but
> now if I wanted to change the scheme to
> firefox what is the configuration that i need to change?

Use Cherokee-admin. Go the the "List & Send" rule, and you'll find a combobox 
from which the theme is selected.

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to