i've added a new module named services to handle N-Level pages.
The only problem i'm facing is on FE when i click on the Services page it should show a list of added services and clicking on one service should take to the services detail page.(redirected using jump to).
Now clicking services at http://localhost/supercity/index.php/Services.html
and detail at http://localhost/supercity/index.php/Se ... ail/4.html
but i found that both these pages are using only one template mod_servicesreader.tpl (ModuleServicesReader.php)
its not using mod_services.tpl (ModuleServices.php)
i added a field in tl_module also as services_templates having values as mod_services and mod_servicesreader for modules defined for 2 pages
in config.php i've added this code
// Front end module
array_insert($GLOBALS['FE_MOD'], 0, array
(
'services' => array
(
'services' => 'ModuleServices',
'servicesreader' => 'ModuleServicesReader',
'serviceslist' => 'ModuleServicesList'
)
));
Classes as following:
class ModuleServices extends Module
{
protected $strTemplate = 'mod_services';
private static $arrUrlCache = array();
protected function compile()
{ ......
class ModuleServicesReader extends ModuleServices
{
protected $strTemplate = 'mod_servicesreader';
private static $arrUrlCache = array();
protected function compile()
{
What wrong i'm doing, how its using mod_servicesreader as default??
Bookmarks