Jump to content

Recommended Posts

Posted

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?

Posted

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.

  • Like 1

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...