Adding a Field for One Projection?

Topics: Customizing Orchard, Writing modules
Jun 8, 2013 at 8:31 AM
I need a description field for one projection, and while that's a useful enough field to warrant inclusion in all projections, there are others that I'm thinking about that would only be useful for a single projection.

Is there a way to add a field for a single projection? Alternatively I could add 2-3 fields to all projections and then re-use them, but I dislike generic field names. It only invites mistakes later.

- SteveN
Jun 8, 2013 at 8:48 AM
You could create a new content type with the same parts as the Projection type, and add your field there. It would be a "singleton" content type with only one instance.
Or, add the field to the Projection type, and only render that field if it has content. The best choice depends on the requirements behind this requirement.