LostKobrakai Posted January 9, 2015 Share Posted January 9, 2015 I'm currently building my first website which includes clientside templating. Now some templates look different in templates but don't use different data, so I want to include a get variable switch which will only send the date to generate the breadcrumb instead of the whole template data. Now my question is, can I somehow interrupt the template rendering of processwire from an _init.php which is prepended? Link to comment Share on other sites More sharing options...
Jan Romero Posted January 9, 2015 Share Posted January 9, 2015 You can echo the date and die()? Link to comment Share on other sites More sharing options...
LostKobrakai Posted January 9, 2015 Author Share Posted January 9, 2015 Thought there could be something less drastic than die() Link to comment Share on other sites More sharing options...
Wanze Posted January 9, 2015 Share Posted January 9, 2015 Assuming I'm understanding the question: You can set a flag, for example on your page object. In the main template, don't render anything if the flag is set. 1 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