Custom Page Template in external assembly in Sitefinity CMS

267 Views Asked by At

I have created a custom mvc page template in external assembly as custompagetemplate.cshtml and changed its BuildAction property to Embedded

enter image description here

Resource and made the entry in AssemblyInfo.cs.... But the template is not registered (it is not available in Sitefinity's Backend under Design/Page Templates).

I have gone through a link http://www.sitefinity.com/developer-network/knowledge-base/details/sitefinity-cannot-find-template-created-in-an-external-assembly

enter image description here

and I have made the virtual path entry but still facing the same issue.

1

There are 1 best solutions below

0
Rob On

The Mvc folders are meant for custom MVC Widgets. Sitefinity MVC (feather) uses the ResourcePackages folder for out-of-the-box widgets and layouts.

If you move your layout file to /ResourcePackages/Bootstrap/MVC/Views/Layouts it will automatically be added to the Page Design overview in Sitefinity Backend.