protected function initPageContext() { // make sure we are looking at the right part of the page $pageContext = $this->st->getPageContext(); $pageContext->switchToContext($this->st); }