API docs     >     Content Blocks     >     Cblock

Cblock->getLinkedPages

Description

getLinkedPages ( $onlyPublished = false )
Gets all published Pages linked to this Cblock

Parameters

$onlyPublished
bool
TRUE if only published Pageversions should be returned (optional)

Returns

array|false
Array of linked Pages or FALSE in case of an error
  1. Array(
  2.     [0] => Array(
  3.         [SITEID] => 2
  4.         [SITENAME] => Homepage
  5.         [PAGEID] => 2
  6.         [PAGENAME] => Overview
  7.         [HASCHANGED] => 1
  8.         [PARENTS] => Array(
  9.             ...
  10.         )
  11.         [VERSIONS] => Array(
  12.             [0] => Array(
  13.                 [VERSION] => 6
  14.             )
  15.             ...
  16.         )
  17.     )
  18.     ...
  19. )