Page template layout not displayed

Shubham Bhardwaj asked on February 3, 2021 13:56

Hi,

I have created page templates and also did filtering. When I am creating a new page in content tree then the templates are displayed for selecting but after selecting a template the template layout is not displayed. And also when I run that page on live site it gives an This localhost page can’t be found error.

Correct Answer

Brenden Kehren answered on February 3, 2021 15:27

The issue with "localhost" is in the Site's settings, you probably have the Presentation URL property set with http://localhost. When this is in production, this will not work. It needs to be the actual domain URL. While debugging locally on your machine, it can be set to localhost but if you share a database with anyone else it may cause problems for them as well.

Regarding the template issue, I'm not 100% sure what would cause that.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on February 3, 2021 14:16

It would be good to start with what version of Xperience you're working with.

2 votesVote for this answer Mark as a Correct answer

Shubham Bhardwaj answered on February 3, 2021 14:48 (last edited on February 3, 2021 15:10)

Thanks Brenden. I'm using v12SP Mvc developement.

0 votesVote for this answer Mark as a Correct answer

Shubham Bhardwaj answered on February 10, 2021 08:52

Thanks to You Brenden!!! and I am really sorry for late reply. Now My project is working properly.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.