roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <snoopd...@gmail.com>
Subject Re: Images when added to resource not available on browsing for frontpage blog
Date Fri, 15 Feb 2008 02:09:33 GMT
On Thu, Feb 14, 2008 at 12:09 PM, Soniya Mathur <mathursoniya@gmail.com> wrote:
>    - version of Roller : Roller 4.0
>    - Application Server version TomCat 6.0
>    - database  MySql
>    - Java version Java Platform SE6 Version 1.6.0
>    - operating system are you using? Win XP
>    - browsers : Mozila Firefox, IE6 IE&
>
>  I have installed Roller version 4 and developing a theme for my frontpage
>  blog. Everything seems to be working fine except one problem.
>  I have added images in themes/frontpage/images/ and added reference for them
>  in theme.xml. eg.
>  <resource path="images/box_top.gif" />
>
>  I added reference to this image in _css as
>  div.entry_outer{ background:  url("$url.resource("images/box_top.gif")")
>  no-repeat left top; padding: 5px; margin-top: 10px;}
>
>  Similarly added reference to an image in weblog.vm
>  <img src=$url.resource("images/create-account.png") alt="create" width="90"
>  height="90"  />

That all looks correct. $url.resource() is the right way to create the
URL to a theme resource.


>  In both the cases I am not able to get the images in browser. When I see the
> source of the page I can see the path to the image as
>
>  background: url("
http://localhost:8080/roller/main/resource/images/box_bottom.gif<http://127.0.0.1:8080/roller/main/resource/images/box_bottom.gif>");
>  which I think is correct.

Yes. It does look correct -- except for the fact that the URL is
listed twice, but I suspect that is the fault of your email program.

Is the image available at that URL? What happens if you paste that URL
into your browser's address bar?

- Dave

Mime
View raw message