Detail: admin copy template, template assign by menu item. This copied can change params
Explain: when duplicate template, db will create 1 row template_style new id. And param can change. Template assign by menu item -> #_menu have column 'template_id'
Solution:
template_name/index.php
use Joomla\CMS\Factory;
$app = Factory::getApplication();
/*getparameName*/
$paramValue = $app->getTemplate(true)->params['param_name'];
0 nhận xét:
Đăng nhận xét