What do I need to do to render pages in Epi for the first time?

  • Page Owner: Not Set
  • Last Reviewed: 2020-07-22

This is mostly just a checklist to show what is needed to render a page in epi.


Answer

  • Page Model inherits PageData at some point.
  • There is a controller that can catch a variation of that type, either default controller or specific controller.
  • A valid View is returned. Usually CShtml path with model, but some times XML or json
  • If this is a new project, ensure there is a project reference to the new project from the web project.

Comments

  • It's probably worth mentioning that the controller needs an action called "Index" and it must accept an argument of the page type with the name "currentPage" or "currentContent", otherwise Episerver's routing won't pick it up.