npsobj context

Syntax

npsobj_context ::=

  <npsobj context = "path">
    content
  </npsobj>

Task

This instruction causes content to be evaluated in the context of path. As path the path to a file is specified. This path is added to the link management.

Example

The following code first switches to the CMS file with the path /newspub/news/news1, which causes this file to become the data source for the subsequent instructions. Then, a link to this file is created, using its displayTitle as the linked text.

<npsobj context="/newspub/news/news1">
  <npsobj insertvalue="anchor" name="destinationUrl">
    <npsobj insertvalue="var" name="displayTitle"/>
  </npsobj>
</npsobj>