Method to get page contents

Feed 0 posts, 1 voices

Avatar
13 posts

I request a method for the page class to get all content names.

array() = Page::contents($inherit = false);

Options

$inherit: Defines whether it should return contents by parents or not.

Returns (Example)

array(2) {
  ["body"]=>
  string(23) "This is a <em>Test</em>"
  ["sidebar"]=>
  string(24) "This is the sidebar test"
}