Jump to content

Alternate Template File does not show up


helmut2509
 Share

Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...