valmo De Switzerland Membro desde abr 2025 valmo 15 abr 2025 22:43 Has anyone tried this procedure recently? (see picture) I found this procedure on the (how to create a template wiki page). Use A Different Layout For The Start Page It suggests creating a new layout file: ~/includes/templates/mytheme.catalog/layouts/index.inc.php. Then, in ~/pages/index.inc.php, adding the following line: <?php document::$layout = 'index'; ?> However, it doesn't seem to work properly. The new layout file (index.inc.php) is being called, but it seems to be loaded completely on its own — meaning that other includes like config.inc.php, app_header.inc.php, etc., are missing. Has anyone successfully implemented this recently? Thanks in advance for your feedback!
tim Founder De Sweden Membro desde mai 2013 tim 16 abr 2025 08:54 So, /pages/index.inc.php gets it's includes from the parent script which is /index.php. Clone /includes/templates/mytheme.catalog/layouts/default.inc.php to /includes/templates/mytheme.catalog/layouts/index.inc.php to make sure you start out with a layout that has all elements needed.
valmo De Switzerland Membro desde abr 2025 valmo 16 abr 2025 10:52 Perfect thanks! It was my misunderstanding of the layouts architecture.