This project is read-only.

Field or Content Part Dilemma

Topics: General
May 28, 2012 at 7:51 PM

I want to create teaser property for my blog post, this task can be solved by 3 ways:

  1. I can add text field for BlogPost content type.
  2. I can develop custom content part TeaserContentPart
  3. I can create custom part in admin and add text field to it.

What is a right way here?

May 29, 2012 at 7:25 AM

They are all fine.

May 29, 2012 at 9:03 AM

But what do you say about performance for all this cases? What is better to store all fields in custom content part or part + set of fields.

Now I see that fields is better for filtering in Query, in case of custom content part I need to implement IFilterProvider manualy.

May 30, 2012 at 7:53 AM

If you are concerned about performance, you should make a profile in each case and determine for yourself in the conditions where this is going to run. In most cases it won't make a significant difference.