Maybe the reference should be
href="/trac/PROJECT_NAME/chrome/site/menu_style.css" since you have Trac Uri
Root.

On Wed, Sep 23, 2009 at 8:59 AM, mingjing ding <[email protected]>wrote:

> Try to place your css at /trac/PROJECT_NAME/htdocs
> and reference it as href="/PROJECT_NAME/chrome/site/menu_style.css"
>
>   On Mon, Sep 21, 2009 at 9:03 PM, Jerico <[email protected]> wrote:
>
>>
>> Hi,
>>
>> Im trying to modify the trac project list (index page) with some
>> custom style sheets but it seems cant locate the css file properly.
>>
>> Here is a sample apache2 configuration with mod_python:
>>
>> Alias /trac /trac/
>>
>> <LocationMatch "/trac">
>>   SetHandler mod_python
>>   PythonInterpreter main_interpreter
>>   PythonHandler trac.web.modpython_frontend
>>   PythonOption TracEnvParentDir /trac
>>   PythonOption TracEnvIndexTemplate /var/www/projects/index.html
>>   PythonOption TracLocale "en_AU.UTF-8"
>>   PythonOption TracUriRoot /trac
>>   PythonOption PYTHON_EGG_CACHE /trac/test/egg-cache
>>   PythonPath "['/usr/lib/python2.5/site-packages'] + sys.path"
>> </LocationMatch>
>>
>> <LocationMatch "/trac/[^/]+/login">
>>   AuthType Basic
>>   AuthName "Trac"
>>   AuthUserFile "/trac/.htpasswd"
>>   Require valid-user
>> </LocationMatch>
>>
>> As per above, Im using a custom version of index.html and this
>> references a css file within (/var/www/projects/css) via link: <link
>> rel="stylesheet" href="css/menu_style.css" type="text/css" />.
>> The above link like doesnt seem to resolve properly to the css dir.
>> Ive tried the absolute path as well but same issue.
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to