Jump to content

Is it ok to use MarkupRegions on one template only?


Recommended Posts

Posted

Just checking something I've not done before...

I've upgraded an old site to PW latest stable and I want to add some new features using MarkupRegions but only on one template.

I've enabled MarkupRegions in config as usual but skipped the append. I've then appended my _main.php file in the template settings instead, so as to target it only to one template type in the site.

$config->useMarkupRegions = true;
//$config->appendTemplateFile = '_main.php'; <--- added this manually to one template in the UI instead of via config.php

Is this ok? It seems to be working, but just checking I'm not introducing any unforeseen pain? I've only ever used MarkupRegions as an all-of-nothing type thing before!

Posted

12hrs later I can confirm everything is running smoothly so far! Will report back on this thread if any issues. But great to know we can use MarkupRegions retrospectively on older sites like this.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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