[Seaside] [2.6]Images and anchors
cunnington at sympatico.ca
Tue Oct 23 01:53:44 UTC 2007
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:
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.
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside