[Seaside] [2.6]Images and anchors
Chris Cunnington
cunnington at sympatico.ca
Tue Oct 23 01:53:44 UTC 2007
Hi Carl,
I¹ve found some solutions for this. The first is for relative paths. And the
second for an absolute path for the image:
Html anchorWithUrl: http://www.amazon.com¹ do: [html image: /cartoon.jpg¹]
Html anchorWithUrl: http://www.amazon.com¹ do: [html image:
http://www.foo.com/cartoon.jpg¹]
To get the image to serve relative paths I use the slug of code at the
beginning of the David Shaffer tutorial that allows me to put images in a
folder called FileRoot.
Anyway, that¹s my solution. I¹d be happy to told that there¹s a better way
by someone on this list.
Chris
> What's the easiest way to use an image for an anchor? Is there a simple way
> to include an image spec like so between the start and end tags without
> subclassing or modifying what's there? I've poked around but nothing jumped
> out at me.
>
> <a blah blah><img src="image.gif"></a>
>
> -Carl Gundel
> http://www.runbasic.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20071022/d9506903/attachment.htm
More information about the seaside
mailing list