Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# mgaerber 9/2/2005 2:38 AM (edited 9/2/2005 2:57 AM)
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?



# mgaerber 9/2/2005 2:54 AM (edited 9/2/2005 5:33 AM)
Looking at Cuyahoga's architecture one more identifier would be needed:

ModuleInstance

to store where the content actually belongs to.

And another way to use such an "abstract" view on different content:

A ContentToContent class could save relationships between different contents.
To stick with the shop example, one could add an Articles section to a node with the shop module and allow users to write articles about a certain product.

Of course, the type of mappings would have to be defined in the core to allow handling of different relations (is related to, follow up, is subordinated to etc.).

A mapping of type "is subordinated to" could for example be used to display threads in a forum, as well (threaded view).

... and I think a lot more benefits could be gained from a high level view on all content...
# martijnb 9/3/2005 7:20 AM
Wow, those are a lot of ideas. I think I have to re-read this a couple of times to see where this all fits in exactly.
The good thing is that these features can make Cuyahoga stand out from the crowd, functionality-wise.
It is definately something for post 1.0 because it requires a substantial amount of Core modification.
I'll hope that some others also give their opinion in this topic. It can be pretty important for future development directions.
# mgaerber 9/4/2005 9:57 AM
I will try to elaborate more on this and provide a database/class diagram.

Most of the systems out there are said to be CMS's but in fact they are Portals without a common model where you can plug in different content modules and make use of the core functionality.

I like Cuyahoga because it is a lightweight yet full featured web framework and I think this could make it a real "CMS" - not only for the web but also for intranet applications and bigger systems.
# martijnb 9/5/2005 3:19 PM (edited 9/5/2005 3:20 PM)
mgaerberI will try to elaborate more on this and provide a database/class diagram.

I'm looking forward to this :).
Most of the systems out there are said to be CMS's but in fact they are Portals without a common model where you can plug in different content modules and make use of the core functionality.

I like Cuyahoga because it is a lightweight yet full featured web framework and I think this could make it a real "CMS" - not only for the web but also for intranet applications and bigger systems.

I'm with you with this. Currently Cuyahoga is more 'portal-like' but after 1.0, I think it would be nice to have some more mature CMS features. Probably not everbody is happy with such a direction. Let's try to find a nice balance here.