Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brandon 1 post 21 karma points
    Dec 13, 2013 @ 15:50
    Brandon
    0

    Querying umbraco content from existing non-umbraco controllers?

    We have an existing site that we have developed in MVC4 (much of it before my time here). I am exploring the possbility of using Umbraco to provide content for certain areas of the site. The problem is, a lot of the site is complex areas that dont need content control, and are developed by several different people all with slighlty different ways of doing things. We take each developers piece and merge into an Area with a custom route and simply integrate their views into the main layout pages.

    So anyhow, we had been working on integrating another much simpler cms system called Piranha into the site which worked great because we could just query the model in the existing controller and return it to the view and get whatever content we needed out of it:

         PageModel.GetByPermalink("[page url]")

    page url was simply a root relative link that would get content from the heirarchy and display it to the page with :

         @Model.Regions.ContentSectionName

    This worked great until we found out the new server upgrade has been delayed for a while and now we have to install this on Server 2003. Piranha is .net 4.5, which cant be installed on server 2003 so we are forced to find another solution.

    So my question for you all is, how would I go about showing content from Umbraco in a simlar manner without touching my existing controllers? Or at the very least integrate the two without breaking the existing code. I simply cannot, at the moment, re-do the entire site in Umbraco and if I cant do this I will be forced to find another solution.

     

Please Sign in or register to post replies

Write your reply to:

Draft