[Seaside] state of the aubergine

Avi Bryant avi@beta4.com
Sun, 21 Apr 2002 21:45:14 -0700 (PDT)


On Sun, 21 Apr 2002, Nevin Pratt wrote:

> 8. Copied the html output from my son's old (static) 'pastwork.html'
> file he created with Dreamweaver to the #html method of the new
> IAPastWork class.
> 9. Defined a 'pastwork' seaside application to use the new IAPastWork
> component.
> 10. Started up an IAKom session on port 80.
>    (for the following, note that my test machine is known on my internal
> network as 'test.com' or ' www.test.com')
> 11. Hit the following URL from my (Mozilla on Linux) browser:
> http://www.test.com/seaside/pastwork

Ok, if you have relative urls for those images, they're not going to work
*quite* that simply - obviously if your url is
http://www.test.com/seaside/pastword/some/other/stuff, and you have
<img src="foo.gif">, that's not going to come out as
http://test.com/foo.gif the way you want it to.

You need to let Seaside modify that url, which means putting an @ sign in
there, like this: <img src="@foo.gif">.  Hopefully that's an acceptable
change to make.

You'll also need to tell the Seaside app where your images are stored (eg,
http://test.com/), so go into the configuration page for your pastwork app
and set the document root to that url (or just '/' should work here).
Programmtically, that's
  (IAApplication at: 'pastwork') documentRoot: '/'.

This make sense?

Avi