Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# wernerw 4/12/2006 4:32 AM
Hi

I am currently busy developing an ecommerce module for cuyahoga. It is quite diverse in the way it functions and requires a heavy admin side.

So I created the eCommerce module which has the module edit / admin page. Due to all the items require for admin I decided to keep one page for the admin.

I added the rico library for ajax support and to give you an idea of what I am doing is the following. In the system I have categories for configuration which is loaded from the DB and configuration items which are loading into the config sections / categories. Each config item has a corresponding controller code which is passed to a aspx which returs valid rico XML data. One of the things I am trying to do is to design the admin pages in ascx controls and then loading them from the controller. It does appear though that the BaseModuleControl does nto function within the "admin" context?? Am I right about this or am I missing something somwhere?

So bassically what I need is to be able to load a control which inherits from BaseModule control but it needs to run within the admin context. I have not seen any of the admin interfaces that use ascx controls.

Hope I've made it clear enough what the problem is.

Thanks

Werner
# mgaerber 4/12/2006 5:19 AM (edited 4/12/2006 5:20 AM)
Two days ago, I created a Jira Issue for this:

http://tijnthuus.demon.nl:8080/jira/browse/CUY-77

It would be nice to be able to choose, if you want to use .aspx or .ascx pages and if you want mulitple or just a single admin page for a module.

Or did you mean something different?

Concerning your activities towards Ajax (Rico), maybe you could join forces with big_al who is (as far as I know) working on a solution using qooxdoo (http://qooxdoo.oss.schlund.de)



# wernerw 4/12/2006 8:05 AM
yeh that is exactly what I am talking about.

What would it require (code wise) to accomplish this?

As far as the ajax is concerned sure I can loko at what big_al is doing although it would not really matter all that much, you would be able to use multiple ajax implementations without issues, as they rely on their own libs...

I am using rico for the moment as it is very simplistic in the way it works and I looked at qooxdoo before and had a little bit more than I required, but I will relook and see if I can incorporate it.
# martijnb 4/12/2006 10:23 AM
I'm thinking about extending the module actions. In 1.0 this is all very loose. I want to make it more robust and MVC like and I'm thinking something like:

- a module has two default actions: View and Edit. The default Edit action just uses the Edit page as defined in the database, but you can override this behaviour and create an Edit .ascx control.
- for every module custom actions can be added. Think of a 'ShowTopics' action for a forum.
- you should be able to set permissions on every module action.

Does that make sense?
# tdanz 4/12/2006 11:31 AM
And to execute another action you simply call it like a transition between one state to another? Or am I off track?
# martijnb 4/12/2006 1:40 PM
tdanzAnd to execute another action you simply call it like a transition between one state to another? Or am I off track?

Don't know yet, just thinking out load
# mgaerber 4/12/2006 11:38 PM (edited 4/12/2006 11:41 PM)
Do you think about single edit page/control per module, or multiple?

Because more complex modules could make use of several edit forms for different content (e.g. shop: supplier, product ...)

The "actions" approach sound really good, you have a few pre-defined view-actions (edit, view ...) and can add your custom ones PLUS assign roles to it.


And thinking about workflow this opens again a new perspective:

For the module you define the actions that you want to support (standard, custom ones). You assign roles to the actions and via the (not yet available) worklfow service you define transitions.
# wernerw 4/13/2006 2:06 AM
All the ideas for the module improvement sounds great, however I need to implement my solution fairly soon. Thus what I have decided to do is the following:

I will have one edit page that will provide the interface to manage the module.
using AJAX I will make calls to a controller / control provider page. This page will accept control types as a parameter and I will then use a combination of templates (standard HTML) along with XML to build the control and return as an ajax component which will be placed on the form.

This control (standard HTML) will use AJAX calls to statemanagement pages which can save the items I need.

I know it is a little roundabout but will do what I need it to do, and the I only need access control to the first admin page which the framework will supply.

# swilliam 5/12/2006 3:42 PM
Interestingly, I too am looking into an ecommerce module. I've had a play with a few ideas and followed the MVC approach - I have a module that does nothing other than load another control based upon the selected action (or view name).

I have a controller that decides the action (IAction) to take based upon the action name, calls the ProcessAction() method (or whatever) which then returns the name of the control to load. Furthermore, because all actions have the same interface, they can be chained together to accomplish shared functionality. In theory, I suppose you could use Castle to instantiate the relevant action class based upon the view name.

To be honest, I don't know how to write applications withing a single control. In my experience, ECommerce sites don't live in controls; they have bits and pieces all over the page. Would this mean lots of modules would be defined for the relevant bits? How would these modules share data and register their persistence in NHibernate? There will be a lot of admin pages.

This forum is probably a good example of a self contained application. It lives in its own control and manages itself through its own pages. The cuyahoga section settings are there just to bootstrap the application.

I've written loads of ECommerce applications in my time and they are all different. Getting something universally useful or very flexible could be difficult. It would be interesting to compare plans with the DotNetNuke camp.

Many thanks

Simon
# martijnb 5/14/2006 3:06 AM
swilliamThis forum is probably a good example of a self contained application. It lives in its own control and manages itself through its own pages. The cuyahoga section settings are there just to bootstrap the application.

For an ecommerce application, I think this is the way to go. Just one module that manages all controls itself.
I've written loads of ECommerce applications in my time and they are all different. Getting something universally useful or very flexible could be difficult. It would be interesting to compare plans with the DotNetNuke camp.

Yes, that's one of the challenges with ecommerce modules. I wrote one for one of our customers, but there were some very specific requirements, so that already makes it useless to serve as a generic ecommerce solution.
It takes an enormous effort to make a generic solution that will fit a large audience.