[ZPT] <img tal:replace="..."> question...

Jules jules@jules.com
Fri, 7 Dec 2001 10:28:25 -0500


(Apologies if this shows up twice -- I tried posting via egroups and it
doesn't seem to have made it here)

I'm enjoying the heck out of ZPT! It makes so much more sense than
XSLT. Highly subjective, of course, but there you go.

I author all of my Zope stuff with a ssh tunnel (-L 8080:localhost:8080
style) for obvious security reasons. I've also got Apache sitting on the
front end with a ProxyPath directive hooking Zope into a virtual Web site.

The only major problem I've run into with this set up is the <img
tal:replace="structure here/someimage">. What comes back is <img
src="http://127.0.0.1:8080/path/to/someimage"> and of course the end
user can't see it.

I tried SiteRoot and that takes care of the problem. But it then
forces the management interface to author via the virtual Web, not the
ssh tunnel. I've been able to temporarily bypass this with adding
/pathtocontent/_SUPPRESS_SITEROOT/manage_main but it's hardly
something I can ask much less technical content authors to futz around
with.

I suppose I could write an Apache module to filter the content but
this will cause a huge overhead. Or if I was a real man I'd read up on
mod_rewrite and do something clever with requests for ^(.*)/manage.

Surely somebody else has bumped up against this.

Thanks for any help!
Jules

-- 
Latest survey shows that 3 out of 4 people make up 
75% of the world's population.