I have a small problem. I have created a Pageholder (TestHolder) with a couple of children (TestPage). If I am viewing a children page I would like to have links for the next and previews page. That means for the following structure:
Page 1 --> links to page 2 and page 4
Page 2 --> links to page 3 and page 1
Page 3 --> links to page 4 and page 2
Page 4 --> links to page 1 and page 3
How can I achieve this, because I have no idea how I can parse a Dataobject so that I can use it to get the needed data in the controller.
$dob = DataObject::get('InventoryPage','ParentID = ' . $this->ParentID)->toArray();
This ends up in the InventoryPage Object and I have no access on the protected properties :(
If i could get the informations from the resultset i could create view variables, but i haven't a clue how to do it.
Best regrads Thomas