Jump to content

Custom .tpl for a Registrar module?


Remitur

Recommended Posts

For a Registrar module, I need in client area a custom tpl, but only for domains gained to that registrar...

i.e.: I need that, for domains gained to myerg,   clientareadomaincontactinfo.tpl will be custom; for any other domain, it will be standard

Does exist any way to do it, other than inserting a lot of difficult and far-from-error-prof 

 

i.e., instead of inserting:

{if $registrar != "myreg"}
    [...]
{else}
   [...]
{/if}

having WHMCS somehow using a customclientareadomaincontactinfo.tpl instead of clientareadomaincontactinfo.tpl ?

Link to comment
Share on other sites

Here I'm again, to answer to my own question...

RTFM is always a great idea: I found there's a ready solution by WHMCS, which allows the ovverride of .tpl files.

So, if you put your own custom .tpl file in a certain path bound to your module, and this .tpl will override the standard tpl

https://docs.whmcs.com/Working_with_Module_Templates

A great thing: I need only to discover why I'm not able to make it working...   :wall1:

Edited by Remitur
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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