[LON-CAPA-users] Can't display images
Guy Albertelli II
lon-capa-users@mail.lon-capa.org
Tue, 30 Aug 2005 01:12:06 -0400 (EDT)
Hi Todd,
> Seems like I've seen this one before, but can't find the answer just now.
> I've got at least 2 students who say they can view problems, etc. but can't
> view the associated images. Any ideas?
This is usually because of missing or incorrect <allow>s in the
associated problem. Most usually because the problem use variable
images.
If you do
<img src="/res/domain/author/$imagename.jpg" />
where $imagename could be either "a" "b" or "c"
You need to make sure you have in the problem
<allow src="/res/domain/author/a.jpg" />
<allow src="/res/domain/author/b.jpg" />
<allow src="/res/domain/author/c.jpg" />
or
<allow src="/res/domain/author/*.jpg" />
--
guy@albertelli.com 0-7-2-1-27,137