Hi everybody,<br><br>I can't figure out something that's probably not that complicated. Maybe you can sort this out easily for me.<br><br>I have a theme called "mytheme" residing in themes/mytheme. That theme folder looks like this:<br>
<br>themes<br> \mytheme<br> \... (some stuff)<br> \images\bg_header.jpg<br> \stylesheets<br> \css<br>
\application.css (this is included in the main layout and works)<br> \screen<br> \basemod.css (this is included from within application.css and works)<br>
<br>Now, within basemod.css I am doing this:<br><br> #header { padding: 323px 2em 1em 20px; color: #000; background: #000 url(../../images/bg_header.jpg) no-repeat scroll left top; }<br><br>But when running Typo using Mongrel (from within Netbeans 6.5) I am getting this when it tries to access the bg_header.jpg file:<br>
<br>Processing ThemeController#stylesheets (for 127.0.0.1 at 2009-04-05 11:52:06) [GET]<br> Parameters: {"filename"=>"images/bg_header.jpg"}<br> Trigger Load (0.1ms) SELECT * FROM `triggers` WHERE (due_at <= '2009-04-05 11:52:06') <br>
Blog Load (0.1ms) SELECT * FROM `blogs` ORDER BY id LIMIT 1<br>Completed in 6ms (View: 0, DB: 1) | 404 Not Found [<a href="http://localhost/stylesheets/theme/images/bg_header.jpg">http://localhost/stylesheets/theme/images/bg_header.jpg</a>]<br>
<br>What is the correct way to refer to files in the images directory from within stylesheets? Why is the request going to http:localhost and not <a href="http://localhost:3000">http://localhost:3000</a> where Mongrel is running? Calling the request URL with port 3000 directly within the browser does not work anyway, but I'm curious.<br>
<br>Any help is welcome. Thanks!<br><br>Tobias W.<br>