#
mgaerber
Sorry for reposting this but I think it is better suited for "architecture":
While working on some ideas and looking at the JSR stuff for CMS repositories, I got to the point where I am thinking about NOT differing between "ContentItem" and "FileItem", in the first place.
If I search a site, or filter by categories, I want everything included.
So, if everything is based on ContentItem, how do I offer specialized services for certain types of content?
What I think about is, adding a set of further specialized base classes (derived from ContentItem) and corresponding handlers to the core.
The question is, where does it make sense to differ?
I would opt for something like this:
- Image
- Binary
- Text
- Mixed (something like word documents etc.)
- etc.
A question, where I am not sure about how the best solution would look like is:
When (in a module) I am going to use these classes but combining them (e.g. a class "Product" having "Images"), both objects could be added to categories but essentially a product image should inherit these settings from the parent product. Or shouldn't it?
Should a parent ContentItem be responsible for its children?
Should the settings on a parent influence its children's settings?
This becomes particulary interesting when adding versioning. Do child versions inherit parents versions?
If a child version changes, the parent version should actually change, if, for example we are speaking about a product as a whole, since we changed a part (Image) of it.
Any ideas?
While working on some ideas and looking at the JSR stuff for CMS repositories, I got to the point where I am thinking about NOT differing between "ContentItem" and "FileItem", in the first place.
If I search a site, or filter by categories, I want everything included.
So, if everything is based on ContentItem, how do I offer specialized services for certain types of content?
What I think about is, adding a set of further specialized base classes (derived from ContentItem) and corresponding handlers to the core.
The question is, where does it make sense to differ?
I would opt for something like this:
- Image
- Binary
- Text
- Mixed (something like word documents etc.)
- etc.
A question, where I am not sure about how the best solution would look like is:
When (in a module) I am going to use these classes but combining them (e.g. a class "Product" having "Images"), both objects could be added to categories but essentially a product image should inherit these settings from the parent product. Or shouldn't it?
Should a parent ContentItem be responsible for its children?
Should the settings on a parent influence its children's settings?
This becomes particulary interesting when adding versioning. Do child versions inherit parents versions?
If a child version changes, the parent version should actually change, if, for example we are speaking about a product as a whole, since we changed a part (Image) of it.
Any ideas?