Hello,
I'm developing my first module silverstripe. The structure of my form is:
code /
---- ModulePage.php
---- ModuleItem.php
templates /
---- Layout /
-------- ModulePage.ss
-------- ModuleItem.ss
_config.php
The file ModuleItem.ss is used for the following custom action:
public function show ()
{
if ($ this-> urlParams ['ID'] && is_numeric ($ this-> urlParams ['ID'])) {
return $ this-> renderWith ('PortfolioItem', array (
'PortfolioItem' => DataObject :: get_by_id ("PortfolioItem", $ this-> urlParams ['ID'])
));
}
return false;
}
My problem is that you see the basic layout without the menu etc ... In Page.ss file of the theme is the variable $ Layout. The result is only processing the file ModuleItem.ss.
Where am I wrong?
Thanks for the help