Hi everyone,
I have a Portfolio page type (PortfolioPage.ss) that in one condition needs to render as a Home page (HomePage.ss). In my PortfolioPage.php controller, I have:
public function index() {
return $this->renderWith(array('HomePage', 'Page'));
}
(condition will be added later)
I'm using the GET var 'debug_request' flag, and I can see this:
Debug (line 202 of SSViewer.php): Final template selections made: array (
'Layout' => '.../themes/oms/templates/Layout/HomePage.ss',
'main' => '../themes/oms/templates/Page.ss',
)
Which seems correct. However, in the rendering there's no data passed to HomePage.ss. Also, the $ClassName var is still 'PortfolioPage'.
This is in 2.4.7. Could anyone advise what the final step is to actually render the Portfolio page as Home page? I think I'm close.
Thanks!
Wilson