#
mgaerber
Hi,
since I am working on a project myself at the moment I did not find time to contribute anything else but my "bla bla" - I hope I can change this soon ;-)
Okay, some more bla bla:
On the discussion about modules and categories I proposed a CuyahogaContent class.
Having thought on this further, I think this could be of use:
The class would contain meta-information:
0. revision number and mandatory id (PK in db)
1. common info: last-edited, author, title, keywords etc
2. a field ContentType (to store the type of the class inheriting from it)
3. a collection of "extended search" objects (maybe key-value pairs)
to be able to generate automatically an extended search form
4. a collection of categories the content belongs to.
Now, if I was to write a module (for example a shop) I would create a few classes (product, company, etc.) that inherit from this base class.
The module now exposes two CuyahogaContent objects,
one of type Cuyahoga.Modules.Shop.Product
and the other Cuyahoga.Modules.Shop.Company
The core could then use the base class to handle everything to do with update, retrieval and categories of the shop module:
update:
centralized revision system to save older revision or diff them
retrival:
1. full-text as is, plus possibility to search concrete documents/objects (Product)
2. extended search
categories:
A category system (structured like the Nodes-system) with a mapping class "ContentToCategory" with structure:
Id (object id, PK in database)
ContentType (full type, namespace + class type)
CategoryId (id of category in category system, PK in database)
could then map any information in the CMS to the categories
As well a combined use of categories and search would be possible
(mark some categories and then do search and this wouldn't even have to be implementend in the database, Lucene would suffice to get the desired results)
Having this infrastructure, would leviate any module developer from having
to implement any retrieval or category related code.
Also simple listings (similiar to the search results already available) could be generated from the information taken out of the CuyahogaContent class,
so a developer could save time on this too and stay with the detail views.
Any thoughts on this?
since I am working on a project myself at the moment I did not find time to contribute anything else but my "bla bla" - I hope I can change this soon ;-)
Okay, some more bla bla:
On the discussion about modules and categories I proposed a CuyahogaContent class.
Having thought on this further, I think this could be of use:
The class would contain meta-information:
0. revision number and mandatory id (PK in db)
1. common info: last-edited, author, title, keywords etc
2. a field ContentType (to store the type of the class inheriting from it)
3. a collection of "extended search" objects (maybe key-value pairs)
to be able to generate automatically an extended search form
4. a collection of categories the content belongs to.
Now, if I was to write a module (for example a shop) I would create a few classes (product, company, etc.) that inherit from this base class.
The module now exposes two CuyahogaContent objects,
one of type Cuyahoga.Modules.Shop.Product
and the other Cuyahoga.Modules.Shop.Company
The core could then use the base class to handle everything to do with update, retrieval and categories of the shop module:
update:
centralized revision system to save older revision or diff them
retrival:
1. full-text as is, plus possibility to search concrete documents/objects (Product)
2. extended search
categories:
A category system (structured like the Nodes-system) with a mapping class "ContentToCategory" with structure:
Id (object id, PK in database)
ContentType (full type, namespace + class type)
CategoryId (id of category in category system, PK in database)
could then map any information in the CMS to the categories
As well a combined use of categories and search would be possible
(mark some categories and then do search and this wouldn't even have to be implementend in the database, Lucene would suffice to get the desired results)
Having this infrastructure, would leviate any module developer from having
to implement any retrieval or category related code.
Also simple listings (similiar to the search results already available) could be generated from the information taken out of the CuyahogaContent class,
so a developer could save time on this too and stay with the detail views.
Any thoughts on this?