Jump to content

Custom templates for custom modules


hotirish99

Recommended Posts

I want to use a custom template to display the domain admin details for a custom Registrar module.

I've taken a look at the custom template documentation page at https://docs.whmcs.com/Working_with_Module_Templates, which says the template should either go in the module folder or the relevant subfolder in the main template folder.

I've  tried duplicating the standard clientareadomaincontactinfo.tpl file in both of these directories and I've also tried assigning a template by using

return array(
            'templatefile' => "contact",
            'vars' => array('error' => $error, 'success' => $success, 'values' => $values),
    );

in the _GetContactDetails function, but I can't get  any of them  to work.

I'm not getting any errors , do I need to activate custom templates somehow?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated