Lyquix / tpl_lyquix

Joomla! base template created by Lyquix
9 stars 3 forks source link

Question: How does the template handle error or offline? #13

Closed iamrobert closed 6 years ago

iamrobert commented 7 years ago

Great template.

How does the template handle:

Protostar has offline.php /error.php files.

I'm curious as whenever I call my:

echo $this->params->get() from template.xml it results in an error for those files.

lyquix-owner commented 7 years ago

Hello @iamrobert , thanks for your message

You are right, both the error and offline templates are very limited when trying to access any parameters from the template.

You can see that in early versions of this template we had an error.php file: https://github.com/Lyquix/tpl_lyquix/blob/315789cbf1849e4c4ea39636dc3a31a19c0f6e35/error.php

But we removed it because it wasn't working well without the parameters from the template. Additionally, since we use sh404sef component, we can customize 404 errors from there without the need for the error.php template. And we never used the offline.php template.

So we decided to let Joomla fallback to the system templates.