page template not available on imported pages

ravi yadav asked on February 10, 2023 10:05

i import some pages from another kentico site but i am creating page template but this template not available for those pages i imported

Recent Answers


Brenden Kehren answered on February 10, 2023 15:55

Is it safe to assume you're working on a Portal Engine site? Can you explain how you imported the pages? How are you creating the page templates?

0 votesVote for this answer Mark as a Correct answer

ravi yadav answered on February 13, 2023 06:11

i am using k13 and i am importing page using site application's import export object feature. i am creating page template form code like this.


[assembly:RegisterPageTemplate(ComponentIdentifiers.PageTemplate_DemoTemplate,"demo template",customViewName: "~/PageTemplates/DemoTemplate/_DemoTemplate.cshtml")]

0 votesVote for this answer Mark as a Correct answer

Not Applicable answered on February 13, 2023 10:24

Do you have errors on the page or in the event log? Or are they in another assembly without the assembly attribute [assembly: AssemblyDiscoverable]?

0 votesVote for this answer Mark as a Correct answer

ravi yadav answered on February 16, 2023 06:27

yes [assembly: AssemblyDiscoverable] is there. also when i am creating new page of same type then page template available for them but not for those who already created before creating page template

0 votesVote for this answer Mark as a Correct answer

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