Quickly create beautiful web applications on the latest technologies: Microsoft .NET 4.5, ASP.NET MVC 4, Oak and Piranha CMS.
To download see https://www.nuget.org/packages/PiranhaCMSOak/
Check examples: https://github.com/davidpodhola/piranhacmsoak-examples
- Create empty MVC 4 Razor project
- Install PiranhaCMSOak nuget
- Allow files to be rewritten during the nuget installation
- Run the web project and configure Piranha CMS
- Start developing using Oak
- Install PiranhaCMSOak using the Installation instructions
- Fix the NewtonSoft.Json 4.5 reference issue if needed (see http://www.slideshare.net/davidpodhola/instalace-balku-piranha-cms-oak)
- Run the web application to get Piranha CMS "Install new website" page
- Fill in Username, Password, Confirm (password) and Email and click Install website
- After successful installation you get the Login page
- Fill in the Username and Password you entered in 7 and click Login
- After successfully log in, you get to the manager with Pages opened
- Piranha CMS is installed, you may check the site clicking on the link below "My site" in manager
- You see the site running with "Welcome to Piranha - the fun, fast and lightweight framework for developing cms-based web applications with an extra bite."
- Install PiranhaCMSOak using the Installation instructions
- Configure Piranha CMS using the steps in Piranha CMS Configuration section
- Open Global.asax.cs and inherit MvcApplication from PiranhaCMSOak.MvcApplication; also type base._Application_Start(); at the end of Application_Start() method (see http://www.slideshare.net/davidpodhola/konfigurace-frameworku-oak-v-piranha-cms-oak)
- Start the web application and in the browser navigate to e.g. /Test path. You should see Oak error screen "The controller for path '/Test' was not found or does not implement IController."
- Add the TestController to Controllers folder
- Run the application, go to /Test and get the error message about missing view
- Create Test folder under Views and add Index.cshtml view to the Test folder
- Now if you navigate to the /Test path, you get your Index.cshtml view rendered in the Piranha CMS
Check log file at ~/App_Data/Logs/Log.txt