Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# gedw99 5/24/2007 9:55 AM (edited 5/24/2007 10:18 AM)
Hey thinking about creating Data Modules and Presentation Modules.

This solves the problem of having to have all the views for an instance of a module in the same sections essentially.

With the addition of a Data Module ( which is just below the Presenation Module) It is much more a MVC style thing.
Teh only issue is how to manage the loose coupling.

What doe people think. Is it a stinker or a good idea.? Some peopel might not have hit this architectural limitation yet..
# swilliam 5/24/2007 1:21 PM
Ged

I'm planning to use a mini-MVC system with the checkout process of the ECommerce. We have lots of views to load at different stages of checkout depending upon such things as the payment provider chosen, entered values, etc etc. The main difference is that this occurs within a single section (not strictly true - some modules communicate with the main section). I think that together with Cuyahoga's Action publish/subscribe should fix most things and also be loosely-coupled.

The main limitation of the portal-type infrastructure is it's containment in a single area, though this is by design. Most CMSs seem to work in this way.

Simon
# gedw99 5/25/2007 2:40 AM
Simon,

It seems we are talking about the same issue.

I was doing some analysis of the DB model and am trying to find a simple way of solving this issue. You right its just MVC in the end.

Can we have a chat on skype about this as we are working on the same thing. I see this as being a very important issue that many Module developers are going to have and want to come up with a design that is reusable long term rather than a quick fix.

i think the fix i have in mind is not a big change, and the benefits i see as being huge.

Then we can involve Martin perhapsand see what he things.
Martin - are you around ? :)

skype name: "gedw99".

# gedw99 5/25/2007 2:44 AM
I also just wanted to add that the sections action thing is NOT what i am talking about.. This solves some of the issues module writers have but definitely not the issues i am trying to address.

For example. Imagine you had to model products.
But you wanted views of products to be on lots of different pages.
You would have one view to edit the products.
You would have another view that is a product editor too, but you would set it in the admin to be pre-filtered to only "handbags: becausse it lives under the "accessories" page node. Just a real world business example relating to E-Commerce.

g
# swilliam 5/25/2007 3:43 AM
Ged

For your particular example we have created a *huge* administration section because there are so many things to manage. If you have more than a trivial number of products there is no practical way to put product details into individual pages anyway.

Modules can get compliated additonally by the section-centric approach to data as well. Information is generally stored per section so that multiple, independent sections can be put into the same site. We've conveniently ignored that for the ECommerce section, though, as it makes the database design even more complicated when you have to administer multiple stores.

The YAF module is an interesting point. It is an entire and very impressive application within a single section. Perhaps we can learn from that.

Simon
# gedw99 5/26/2007 6:12 AM
Hey Simon,


I see your point about Models.

Clearly the best part about Cuya is the encapsulation of the Modules But i need to break the Presentation Layer and ata layer into separate Modules.

Page
Section
PresenationModule A_DMA
PresenationModule B_DMA
DataModule A

This means a dependency between Modules, and its means actually modelling that dependency at the data level so that it can be discovered and changed at run time at Admin Level.

I am also really hoping that a 2.0 release is done soon liek we said and the dependency injection of the Interfaces is just done, rather than embellishing other stuff.



# swilliam 5/26/2007 6:47 AM
Ged

With the architecture described below, aren't you just creating two presentation modules/views and sharing common services, as exposed by the Windsor Container. This does beg the question, I suppose, of which entity controls the pool of data. Data is currently stored per section, generally, unless you add a new concept of named data pools which may be accessed by any section.

Simon