Fix override of layouts
Fix override of layouts
Hi,
it's currently not possible to override the consolidated reports layout (for example), because the base path is set in the renderLayout function.
hence, the layout included path are starting with the one shipped in the component, which is always found of course...
Layout: bootstrap5.reports.consolidated Include Paths: Array ( [0] => /my/website/path/components/com_communitysurveys/layouts [1] => /my/website/path/administrator/templates/atum/html/layouts/com_communitysurveys [2] => /my/website/path/components/com_communitysurveys/layouts [3] => /my/website/path/administrator/templates/atum/html/layouts [4] => /my/website/path/layouts ) Searching layout for: bootstrap5/reports/consolidated.php Found layout: /my/website/path/components/com_communitysurveys/layouts/bootstrap5/reports/consolidated.php
to fix this, base path has to be removed from renderLayout call, for example in administrator/components/com_communitysurveys/views/reports/tmpl/default.php, line 47
<?php echo SurveyHelper::renderLayout($layout.'.reports.'.$this->layout, array('data'=>$this), CS_LAYOUTS_BASE_PATH, array('debug' => false));?>
should be
<?php echo SurveyHelper::renderLayout($layout.'.reports.'.$this->layout, array('data'=>$this), null, array('debug' => false));?>
Access to viewing replies is restricted.
Showing 1 of 1 replies
You do not have permissions for replying to this topic.