Sitecore MVC and the InsertRenderings Pipeline

The Collette website runs on Sitecore MVC, we are in the process of upgrading to the latest version of Sitecore 8. Mark Stiles and I were working on the genetic algorithm and noticed that my pipeline was not being hit.

I had this problem several months ago as well and ended up implementing that functionality outside of the pipelines because I couldn’t figure it out.

Well guess what! We found out why and it’s because of MVC! Sitecore MVC does not use the insertRenderings pipeline, it uses instead the mvc.getPageRendering pipeline. A quick change to use the new type of arguments and we were golden.

I defintiely wanted to share this experience. We actually found this because of a blog post we came across, which I can now not find…

Enjoy!
Tim

2 thoughts on “Sitecore MVC and the InsertRenderings Pipeline

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s