Archive / July 2012


Working with the Piranha menu

Published: 7/6/2012, Author: Håkan Edling, Categories: Tutorials, Piranha

When it comes to building menus, Piranha really makes it easy for you. In this post we'll describe how the included menu works and how you can tweak it to your needs.

Unlike many other CMS platforms out there Piranha really makes it easy for you to build menus. With just a single helper method it provides you with a number of choices for creating the menu structure you want, without any fuzz. And even better, the menu is rendered as a simple UL/LI list with no unneccessary HTML to clog up your neatly constructed layout.

0 Comments

Read more


Customizing the html-editor

Published: 7/6/2012, Author: Håkan Edling, Categories: Piranha, Tutorials

When you login to the manager interface for the first time you might think that the html-editor is a bit sparse on the tools it provides. But don't worry, like everything else, the editor can be changed and customized for you applications.

After you create you Piranha website you might notice that there is a folder named Areas included in the site. Below this folder you'll find the Manager area with it's Content & Views folder. The entire manager interface is based on using a virtual path provider for retrieving the manager content that's embedded inside the core Piranha dll. However, this provider always look for the corresponding file on the local filesystem first, which means that all views and resources provided as embedded resources can be overriden or changed in the project.

0 Comments

Read more


Refactoring the archive page

Published: 7/5/2012, Author: Håkan Edling, Categories: Piranha, Tutorials

In this post we'll take the Blog archive page we built in the last post and refactor it by moving the inline code into a custom model and then finally creating a new page implementation.

Before we go any further and start refactoring our archive page, make sure you read the previous post where we created the archive page.

0 Comments

Read more


Implementing a blog/archive page

Published: 7/4/2012, Author: Håkan Edling, Categories: Tutorials, Piranha

In this post we'll look at how to implement a startpage for a blog with archive functionality with Piranha. We'll start off by implementing this functionality only with inline page code, and in the next article we will continue by refactoring it by moving the code into a custom page implementation and extend the basic PageModel.

Almost every site need some kind of archive functionality, weather it's a blog or a news archive. Luckily for us, there's a lot of base functionality for this included in Piranha, and as an example we'll look at how we've implemented the blog page at this site.

0 Comments

Read more