Try our conversational search powered by Generative AI!

EPI CMS MVC Application

Vote:
 

Hi,

I am trying to create a brand new MVC applicating using EPI CMS. I create the confgs and binaries using deployment center 7.5 and included those in the solution. 

I am able to run the application successully. By detauls site url takes me to resource not found page and when I added /episerver/cms it takes me to the application editable page. But its not editable. 

I am kind of confused about the start up page/controller. I gone through MVC alloy template and couldnt understand the pipeline. Can anyone explain me the page flow in Alloy template. Its such a huge template and not suitable for a beginner. if there is any simple application available, can you point to me as well. Thanks a lot.

#149588
Jun 04, 2016 3:43
Vote:
 

Hi Vipin.

It sounds to me like a small Episerver configuration change is missing. Episerver has to be told what page to use as a Start Page for a given hostname. There are a few examples if you look in the Episerver documentation, but this image should cover what you need. It configures a site named "Campaign site" for a given URL that uses the page "Start" as Start Page for the site.

Please note that you need to create an instance of your StartPage (in above example that is called "Start") inside the Edit-mode part of Episerver. Be aware that it may required you to enable a Language and activate that Language for your Root page. Something similar has been covered by a Blog Post written by Dejan Caric:

http://www.dcaric.com/blog/episerver-7-5-how-to-enable-multiple-languages

I hope this enabled you to get your site up and running. :-)

Casper Aagaard Rasmussen

 

#149591
Jun 04, 2016 12:44
Vote:
 

1. Create a start page content type in code

2. Create a controller that inherits from Episervers base controller for the start page content type.

3. Create a view to render the Startpage

4. Log into admin mode and give yourself access rights in content tree.

5. Switch to edit mode and create a startpage below root.

6. In admin, check that settings for the website and make sure it uses your start page. Also check that host is correct...

Read some matching documention here

http://world.episerver.com/documentation/cms/get-started-with-cms/3--creating-a-start-page/

#149595
Edited, Jun 04, 2016 20:56
Vote:
 

Thanks you. I am able to run it now.

#149599
Jun 05, 2016 5:47
Vote:
 

Nice! :) welcome to the Episerver cms then. Best CMS for developers btw :)

#149603
Jun 05, 2016 9:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.