adrianmak Posted January 15, 2015 Share Posted January 15, 2015 I'm going to build a course application form. The submitted form data will be saved as page. These are pesudo steps 1. create an application form template and add fields. Should the template associated with a template file ? since the data will be shown to the Internet visitors, just for back-end admin 2. create a new page /application-form-submission How to prevent others to know the url exist accidentally? Link to comment Share on other sites More sharing options...
Jan Romero Posted January 16, 2015 Share Posted January 16, 2015 If you don’t set a template file, the URL will show the 404 page, as if the page didn’t exist. Logged in users would still be able to view the page’s content in the admin backend. If you want to have a page with a visible template that can’t be accessed by guest users, you can check if the user is logged in. If not, you throw a 404 Exception. <?php if($user->isLoggedin() != true) { throw new Wire404Exception(); } // normal template code 1 Link to comment Share on other sites More sharing options...
mr-fan Posted January 16, 2015 Share Posted January 16, 2015 A good read on the "hidden" thing is there: https://processwire.com/talk/topic/5705-preset-new-subpages-as-hidden/#entry55733 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