npsobj insertvalue image

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 name has been specified, a URL for name is queried. If this URL is not empty, a src attribute with this URL as its value is inserted. The value of name must yield a file context.
  • All attributes of the NPSOBJ tag except insertvalue and name are added to the resulting img tag 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>