This project is read-only.

Parts - Display With ViewModel

Topics: Writing modules
Apr 3, 2011 at 3:38 PM


Is it possible to make a part for just displaying some grouped content? Can it be possible with ViewModels? How?

I'm developing a module. It has 2 parts. Namely, EducationPart and AchievementPart. I'll let my users to enter their education information and past work experiences.

Now, I would like to display all of them in a profile page. Something like LinkedIn profile page.

But I'm stuck. Profile itself has no relationship with data entrance. It's just a combination of data display. But how to do it as a part? Because I would like to add it to my pages like any content part.


Thank you

Apr 3, 2011 at 3:49 PM

You can't do anything with a part without adding it to a Content Type.

So, in the Dashboard, create a content type called "Profile". Add you part to it. Also add CommonPart (you have to), and RoutablePart (which allows you to attach the content to a URL).