jfreak53 Posted January 9, 2013 Share Posted January 9, 2013 I can't find it anywhere in the developer documentation but it does hint to the fact that in the _output function I can call a template file. How do I do this? I would like to call a template file for final output from the module directory. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
leemason Posted January 14, 2013 Share Posted January 14, 2013 yes it can be done, have you checked the supplied templates as they document it i think. basically you can either echo content, then exit the script (this wont include the sites header/footer). or you can return an array like so: return array( 'pagetitle' => $title, 'breadcrumb' => array($vars['modulelink'] => $vars['_lang']['page_title']), 'templatefile' => 'tplname', 'requirelogin' => 1, 'vars' => array('vars' => $vars) ); its pretty self explanatory, but the templatefile is the name of the .tpl file in the module folder. breadcrumbs is an array link => anchor text. login is true/false, and vars allows you to assign additional smarty vars for use in the template. 0 Quote Link to comment Share on other sites More sharing options...
NutterChen Posted November 5, 2023 Share Posted November 5, 2023 It does not work 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.