You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Greg Pagendam-Turner <gr...@liftyourgame.com> on 2011/05/17 02:32:40 UTC

Logo asset path

Hi,

I'm trying to reference a logo in my Layout component.

The logo is located in the project under 
src/main/webapp/layout/images/logo.png

After reading http://tapestry.apache.org/tapestry5/guide/assets.html I 
would have thought that the correct way to reference it from Layout.tml 
would be:

<img src="context:layout/images/logo.png"/>

But this gives a broken link and Chrome reports:

GET context:layout/images/logo.png undefined (undefined)

Please help.

Regards,

Greg.


Re: Logo asset path

Posted by David Rees <dr...@gmail.com>.
On Mon, May 16, 2011 at 5:46 PM, Greg Pagendam-Turner
<gr...@liftyourgame.com> wrote:
> Perhaps the examples at
> http://tapestry.apache.org/tapestry5/guide/assets.html should be changed to
> include ${}

Latest docs are better than those old docs.

http://tapestry.apache.org/assets.html

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Logo asset path

Posted by Greg Pagendam-Turner <gr...@liftyourgame.com>.
Thanks Dave,

That works.

Perhaps the examples at 
http://tapestry.apache.org/tapestry5/guide/assets.html should be changed 
to include ${}

Regards,

Greg.


On 17/05/2011 10:43 AM, David Rees wrote:
> On Mon, May 16, 2011 at 5:32 PM, Greg Pagendam-Turner
> <gr...@liftyourgame.com>  wrote:
>> I'm trying to reference a logo in my Layout component.
>>
>> The logo is located in the project under
>> src/main/webapp/layout/images/logo.png
>>
>> After reading http://tapestry.apache.org/tapestry5/guide/assets.html I would
>> have thought that the correct way to reference it from Layout.tml would be:
>>
>> <img src="context:layout/images/logo.png"/>
> Did you try:<img src="${context:layout/images/logo.png}"/>  ?
>
> -Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Logo asset path

Posted by David Rees <dr...@gmail.com>.
On Mon, May 16, 2011 at 5:32 PM, Greg Pagendam-Turner
<gr...@liftyourgame.com> wrote:
> I'm trying to reference a logo in my Layout component.
>
> The logo is located in the project under
> src/main/webapp/layout/images/logo.png
>
> After reading http://tapestry.apache.org/tapestry5/guide/assets.html I would
> have thought that the correct way to reference it from Layout.tml would be:
>
> <img src="context:layout/images/logo.png"/>

Did you try: <img src="${context:layout/images/logo.png}"/> ?

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org