helmut2509 Posted May 29, 2017 Share Posted May 29, 2017 Hi, I have a template file to which I assigned an Alternate Template File. But when I enter the url in the browser a blank page is showing up. There is no entry in the log file and no other error message which could give me a clue. Even when I remove the Alternate Template file, the default template is not being invoked. any suggestions? EDIT: the last part of the url is a numeric Id. When I skip the id, the script is being invoked and outputs a debug message. WITH the id in the url I get a blank page. However, I allowed URL Segments for this template...... EDIT: case is settled: the error stems from a needless slash in the regex expression for allowed url segments... Link to comment Share on other sites More sharing options...
Macrura Posted May 29, 2017 Share Posted May 29, 2017 can you provide screenshots of your templates folder, and the screen showing where you entered the alternate template file name. other considerations, are you using delayed output, do you have _main.php... also pls. post the debug message, url etc.. 1 Link to comment Share on other sites More sharing options...
helmut2509 Posted May 29, 2017 Author Share Posted May 29, 2017 23 minutes ago, Macrura said: can you provide screenshots of your templates folder, and the screen showing where you entered the alternate template file name. other considerations, are you using delayed output, do you have _main.php... also pls. post the debug message, url etc.. In the templates folder I have a dummy template 'werkedit.php' and the file containing controller function and business logic 'werkeditCtrl.php'. this last one is the Alternate Template File. Inside the templates folder is a "view" folder containing the markup file. This last one is here not relevant, because it's not invoked. The question is why is 'werkedit.Ctrl' invoked only when there is NO id in the url? There are no other considerations like those mentioned by you. 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