How to restrict umbraco template direct visible in browser
Hi there,
I have created umbraco template named as sampletemplate. but I did not create a contents for that (I did not publish) template.
When I browse
with that template( Example - https://www.example.com/sampletemplate)
it's showing the content of the template. I don't want to display when I directly browse with template name. How can I do that?
How to restrict umbraco template direct visible in browser
Hi there,
When I browse with that template( Example - https://www.example.com/sampletemplate) it's showing the content of the template. I don't want to display when I directly browse with template name. How can I do that?
Hi,
This the so called altTemplate fuctionality.
To disable this entirely you do that in config
https://our.umbraco.com/documentation/Reference/Config/umbracoSettings/#webrouting
Here is some more info on alt templates in Umbraco : https://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/templating/alt-template/
https://codeshare.co.uk/blog/umbraco-alternate-template-feature-bug/
The last blog has another way to solve this.
Dave
is working on a reply...