Quantcast
Channel: Forum
Viewing all articles
Browse latest Browse all 3613

Adding list with data from other model than the page type?

$
0
0

Being fairly new to MVC and also new to a higher version if CMS than 6 R2 I asume this is a nooby question.

I have a PageType called called EducationList with just two simple string properties, Header and Body.

Under the Body I want to present a list of educations that comes from a whole other database. Actually a service with a nice model structure but not at all related to EpiServer.

In my EducatioListController I can easily get an object from the external service but how do I get that to show in the view (EducationList/Index.cshtml). The view only seems to be able to read things from the PageType Model and going via the ViewBag doesn't seem like a very elegant idea.

So... now what, is this were a View Model should be used or something else I have no clue about? I can't find any MVC tutorials on this including an EPiServer angle.


Viewing all articles
Browse latest Browse all 3613

Latest Images

Trending Articles



Latest Images