bernhard Posted May 19 Author Share Posted May 19 10 minutes ago, Pavel Radvan said: if($page->template == 'your_template') return; Hey @Pavel Radvan there is a mistake in my code. It should be != not == --> The purpose of this line is to only execute the rest of the callback for the template that you want. That means if the template is NOT your template, then it should exit. My code was not meant to be copy/paste ready. It's a boilerplate code to show you how it works. You have to make it work yourself or ask for help in the forum. But please not in this thread as we are getting out of scope here and we are not talking about RockForms any more. Please create another thread. Link to comment Share on other sites More sharing options...
Pavel Radvan Posted May 19 Share Posted May 19 10 minutes ago, bernhard said: Hey @Pavel Radvan there is a mistake in my code. It should be != not == --> The purpose of this line is to only execute the rest of the callback for the template that you want. That means if the template is NOT your template, then it should exit. My code was not meant to be copy/paste ready. It's a boilerplate code to show you how it works. You have to make it work yourself or ask for help in the forum. But please not in this thread as we are getting out of scope here and we are not talking about RockForms any more. Please create another thread. Hi. Thanks..I thought that it is in this condition.... Sorry for posting here. I will create thread if I will need more help, but now I know more... 1 Link to comment Share on other sites More sharing options...
bernhard Posted May 19 Author Share Posted May 19 All good so far, no worries 🙂 Just wanted to say it early enough to not bloat this thread more then necessary. Thx and good luck! 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