[Seaside] Using image tags in Seaside

Andreas Nilsson wahboh at mac.com
Wed Sep 8 17:56:13 CEST 2004


I'm trying to get seaside to show images on a page, but I don't 
understand where to put the files.
Found a FAQ on the web that said something about DocumentRoot in the 
application config, but I can't find any setting named DocumentRoot.

 From the FAQ (http://swiki.squeakfoundation.org/sea/15):
Question:

  So Seaside generates the HTML for my page, and I point my web browser 
at port 8000 to get the results.

  Now, how do I place an image on the page there? Just assume a <img> 
tag for a simple case.

  I create a directory on the host to serve from (let's assume 
c:\seaside\jill.jpg for the example). How do I indicate to 
Seaside/Comanche that is where the image resides in some sort of 
relative URL form? And what HTML do I have to generate in my 
components' html method to have that image served?

Answer:

	• 	 There's a "Document Root" field on the config page for your app, 
which controls where documents are served from. Set this to c:\seaside.
	• 	 use <img src="resource/jill.jpg">  in your HTML

Any ideas?

/Adde
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1254 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20040908/18cbc482/attachment.bin


More information about the Seaside mailing list