Syntax
npsobj_insertvalue_image ::=
<npsobj insertvalue = "image" name = "name"
{ other_attribute } >
</npsobj>
other_attribute ::= string = "string"
Task
This instruction creates an img tag including the attributes given
below. The instruction cannot be used to generate image links with external
URLs. For this, manually add an img tag to your layout.
- If
namehas been specified, a URL fornameis queried. If this URL is not empty, asrcattribute with this URL as its value is inserted. The value ofnamemust yield a file context. - All attributes of the NPSOBJ tag except
insertvalueandnameare added to the resultingimgtag after the @ references contained in their values, if any, have been resolved.
Example
In the example below, the context is switched to an image file first. This
context is then referenced by means of self in the
insertvalue=image instruction.
<npsobj context="/resources/banners/large"> <npsobj insertvalue="image" name="self" height="50%" width="50%" /> </npsobj>