thetuningspoon Posted September 17, 2015 Share Posted September 17, 2015 I'm getting output formatting errors even when I've called of(false) on a page earlier on in my script. Is there something other than calling of(true) that could cause a page's output formatting status to turn back on during the same request? (saving another page, perhaps?) EDIT: Okay, here's one example out of many I've run into: I have one template that includes two other files (one for a "controller" and one for the "view"/markup output). If I call $page->of(false) at the bottom of the first file and then check it's status with $page->of() in the second, output formatting is back on again. However, if I call $page->of(false) in the second file right before I output the status, then it shows it as off, as you would expect. EDIT #2: Just tried this again on a separate install. This time I tried turning off output formatting in a head.inc file and then echoed $page->of() in the main template file. Once again, output formatting is back on in the template file. But if I turn off output formatting in the template file itself (as long as it is after the include statement), it remains off. EDIT #3: I was able to narrow this particular issue down to the MarkupSimpleNavigation module, which must be switching outputformatting back on somewhere in its code without resetting the state after that. Let's see if I can narrow down my other issues.... 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