Available for: Content Management Server
Task: The procedure returns a list of the links contained in each object. Only files which contain links will be taken into consideration.
Syntax:
showLinksOfObjects objIdsOrPaths [selector]
Function parameters:
objIdsOrPaths
is the list of files which
are to be checked. The list can contain both file IDs and paths. The path
must be absolute, i.e. it must start with a slash.selector
is one of the following
selectors:
all
: all links will be taken into
consideration.dead
: only the links which have not
been resolved will be taken into consideration.Return value if successful: the list of the files containing links. For each link, its ID and its destination is output.
Necessary permissions: Only the IDs of the files for
which the user has permissionRead
permission will be
considered.
Example:
CM>showLinksOfObjects [obj list] all showing links / (2001) link 2193 /test.html done.