JayGee Posted December 14, 2023 Share Posted December 14, 2023 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! Link to comment Share on other sites More sharing options...
bernhard Posted December 15, 2023 Share Posted December 15, 2023 Uneducated guess: I think it should be fine. 1 Link to comment Share on other sites More sharing options...
JayGee Posted December 15, 2023 Author Share Posted December 15, 2023 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now