Migrating custom templates from pre 1.5.2 to new structure

Pre version 1.5.2 the content for the page was evaluated by smarty to replace template variables before displaying the content.
This feature used the smarty eval function, which since WHMCS 5.2.6 has been removed.
In the interest of still providing this great feature we have had to make a few changes to the templates.
These changes have been made to the default templates supplied with the module, if however you have develoiped your own custom templates you will need to make some changes to them as described below:

Firstly you will need to add this to the top of every custom template (if not already present):


Then further down in the template you will need to replace:

{eval var=$content}

with this snippet:

{include file="whmcspages:$id"}

This will work with any version of WHMCS, but is specifically designed to address the lack of smarty eval support in WHMCS 5.2.6

Was this answer helpful?

 Print this Article

Also Read

Addon Upgrade Instructions

Upgrading one of No Half Pixels addon modules for WHMCS is quite straight forward and only...

The Edit Page Screen

The edit page screen contains a variety of different options to help you customise the page you...

The required .htaccess module for SEO urls could not be found, it is possible this function may still exists/work but to be sure please contacting your host ERROR

On some servers, the pages module will not be able to add the .htaccess rewrite rules...

IIS Rewrite Rules for SEO URL's

It is possible to use SEO URL's when WHMCS is installed on a windows server without any .htaccess...

Viewing the RSS Feed

As of V1.5.0 the pages module now creates an RSS feed of all the pages created.This Feed is added...