NPSOBJ Tags for Generating Collections of Links

With the exception of layouts, you can add free links to the draft version of every file – normally, however, only folders and documents are equipped with related links. The target of a free link can be another file (internal link) as well as an external document.

Free links are assigned to content fields of the linklist type. Using an NPSOBJ instruction you can generate a list of all the free links assigned to a particular linklist field in order to create a styled collection of links.

A collection of links can be created in two ways, either as a list or as a table. With the following code you insert the links as a list:

<npsobj list="relatedLinks">
  ...
</npsobj>

The following code will result in a table:

<npsobj table="relatedLinks" columns="3" direction="vertical">
  ...
</npsobj>

Using the parameter columns you determine the number of columns, direction determines whether the cells are filled from left to right (horizontal) or from top to bottom (vertical). In cells that remain empty, the CMS inserts a non-breaking space (&nbsp;). For formatting the table you can specify further parameters such as border, width, height etc.