(Answer) (Category) LON-CAPA User Help : (Category) Authoring : (Category) Authoring Problems :
Why can't the students see the <img>s that the author sees?
Trivial answer:

Possibly because the author needs to include appropriate <allow > tags in the XML for the specific images. These tags are generated automatically for "non-dynamic" <img > tags but not for dynamically specified ones.

Thus, for example:

<img src="/res/domain/name/subdir/$variable.gif" /> will cause the tag

<allow src="res/domain/name/subdir/$variable.gif" /> to be automatically generated and appear just prior to the </problem > tag. However, that is non-functional because there is no specific image having that name. (It would probably be better if it were not generated at all.) The author will have to hand-generate an appropriate allow tag for any images that may translate to $variable.gif.

A global specification such as <allow src="/res/domain/name/subdir/*.gif" /> seems to work OK.

[Append to This Answer]
Previous: (Answer) HTML to TeX conversions
Next: (Answer) Can one safely omit "<th>" tags in "<table>"s if headers are undesired?
This document is: http://help.loncapa.org/cgi-bin/fom?file=54
[Search] [Appearance] [Show This Answer As Text]
This is a Faq-O-Matic 2.719.
This FAQ administered by the LON-CAPA team at MSU. Submit a help request ticket to contact us.