Copied to clipboard

Flag this post as spam?

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


  • Gary 7 posts 71 karma points
    Mar 23, 2015 @ 22:35
    Gary
    0

    Have umbraco render data from other system

    Hi

    I am a umbraco newbie and so far have a umbraco application working. Now we want to have some custom url (like Category/Test/{id}) in umbraco. It will get data from other system and render them into a umbraco page as part of the whole umbraco application.

    What we did so far is we use custom route TestController : Umbraco.Web.Mvc.UmbracoController (this is the place we get data from other system), create a custom model TestModel, and have the umbraco view inherits from Umbraco.Web.Mvc.UmbracoViewPage<TestModel>. Everything works fine until we found that by using Umbraco.Web.Mvc.UmbracoViewPage the umbraco will not generate the culture code automatically. Because we have multi-language, we want to have this feature. Moreover, our MasterTemplate.cshtml inherits from UmbracoTemplatePage and we prefer all pages inherits from the master template, which means having the Umbraco.Web.Mvc.UmbracoViewPage<TestModel> in the child page will trigger some errors.

    Later we try to use TestModel : RenderModel. However, we are not sure about how to deal with IPublishedContent as we need to pass it to the RenderModel constructor.

    To be short, we want our umbraco page have some custom links. These links will some how retrieve data from some other systems and render the data into a umbraco page. Also if possible we want these pages have the same Master Template as other normal umbraco page and automatically have the culture generated.

    If any one has any ideas, please feel free to share. We would be very appreciate and thank you very much in advance.

    Gary

Please Sign in or register to post replies

Write your reply to:

Draft