Jump to content

Use modules (or something else) to inject data into templates


sotto

Recommended Posts

Hi,

 

I need to add runtime generated data to an existing Client Area template e.g. `complete.tpl`. In prior WHMCS versions I used JavaScript to retrieve the data and inject it. But due to some changes to WHMCS 6/7 my self-made i18n code isn't working anymore. I'm now trying to achieve the same thing with tools that WHMCS provides.

Addon Modules basically provide everything I need, but as far as I see, the templates can only be used to render custom Client Area pages, not extending already existing ones.

Can this be done with Addon Modules or something else? Provisioning Modules allow something similar; it's `_clientarea` function injects into `{moduleclientarea}` in `clientareaproductdetails.tpl`. I need this, but in a more generic way.

 

Any ideas? Thanks a lot!

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