Test templates without breaking the frontend

  Previous article Next article  

Test templates without breaking the frontend

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.3.1
  Last updated: 28-02-2017
  Comments: 0

You need to do some tests at your website, but you don't want to break the frontend for the visitors.
A simple solution using Smarty.

  How to use

Your current IP address is: 54.198.143.210
This way only you will see the template vars:

{if $smarty.server.REMOTE_ADDR == '54.198.143.210'}
  {get_template_vars}
{/if}

<!-- The template content -->

Another example, testing a module like CGFeedback without letting it show to the public.

<!-- The template content -->

{if $smarty.server.REMOTE_ADDR == '54.198.143.210'}
  {CGFeedback key1=$foo key2=$bar}
{/if}

A2 Webhosting CMS Made Simple

  Comments

  Click here to leave a comment






This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)
  « Enter the CAPTCHA code (lower case)

Your IP address will be stored on submit. I reserve the right to change or delete your response without notice!
In case of abuse your IP address will be blocked!


Can I have your attention for a moment?

Did this tutorial help you solving a problem at your (clients) website and it saved you many hours of work? Great!!
Consider buying Rolf a cup of coffee in return! [ Click here ]


  0 Comments

No comments yet...

CMS Made Simple 2.2.3.1 - Tutorials, tips and tricks - CMSMS 2.2.3.1

Test templates without breaking the frontend

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.3.1
  Last updated: 28-02-2017
  Comments: 0

A2 Webhosting CMS Made Simple