Before I go in to an “I wanna” forum post, I want show some appreciation. You have created a portal that is very clean, fast, and with a host of advanced features. I don’t know how long you have been working on it, but the results show experience.
I was looking at putting together a portal with exactly the same technology stack, (.Net, Nhibernate, postgreSQL) and through google and blogs come across your site. As far as I can tell you are a leader in the .Net technology space. By using .Net and NHibernate in a portal you have achieved OS independence, and leveraged mature open source technologies, good work.
The features / roadmap architectural issues that I would like to discuss are: what is the plan for multiple independent portals?
From what I have experimented with you can setup up different sites with different nodes, but you can not group users and roles and isolate them to a site. This presents a problem if you are truly providing a portal to say different companies or different groups etc. that may have different editors.
Also the problem comes up in the template area. You may not want to share all available CSS files and templates between portals.
You're completely right about the multi-site issues. You can setup multiple portals but they all currently share the same users, groups and templates.
This is mainly because Cuyahoga originally was not designed to support multiple sites at all :).
In the beginning, the core of Cuyahoga consisted of the Nodes and Sections. Later I added the Site concept because I needed something with a more global scope than a Node (to store Settings, Defaults etc.). So then I had the concept of a Site and it was just a little bit of extra work to allow for multiple sites.
Now for the future: I'm not planning to extend the multi-site (or portal) functionality myself. If there are going to be many people who need this, we have to organize a development team and move Cuyahoga to Sourceforge, because it's way too much work for a single developer like me :).
sleuthI don’t know how long you have been working on it
Well, for the record, I started about a year ago when the main goal was to achieve a CMS-like solution that would run on Mono with PostgreSQL. The core system was build with a handcrafted DAL first (provider to enable other databases as well).
At the time I started with the modules one thing was clear to me: I need an O/R mapper or otherwise this thing never gets finished because the most energy went into writing tedious DAL code and that isn't very motivating if you know what I mean :)
I stopped development and went looking for a decent O/R mapper that suited my needs. The only one that claimed support for .NET and Mono at that time was Gentle.NET. Integrating it was a horrible experience because it does things well, except one: speeding up development time. So I dumped Gentle and my quest continued :(.
Almost desparate I tried NHibernate (Alpha, with only real support for SQL Server). It turned out to be exactly what I needed, but didn't have PostgreSQL support, so I had to write that myself.
After getting this right, I rebuilt the Cuyahoga core with NHibernate and since then everything went pretty smoothly until the point where we are now :).
I had very similar experiences with writing DAL code. I think this pattern is the start of a wave of products that will be implemented. For people like myself that have been waiting until all of the open source dots have been connected, the last one has finally completed the circle. I am really looking forward to your module document. I would also like to start a Wiki or a set of documents, were we can document our pain and give novices that want to follow a set of instructions / tools / or links to guide them along. Stupid things that until I read them I wasn’t 100% sure about like: you can compile your DLLs on Windows using Visual Studio and FTP them to your mono installation and they will work (as longs as the name space is available). Or something like in order ensure proper cross platform support I develop using Visual Studio then I use slingshot to build my Nant scripts which then auto compiles it on both my mono platform and my MS platform, next I use MyGeneration to generate my NHibernate mapping files etc. etc. (this is just an example I don’t have my environment fully fleshed out yet).
I think moving it to SourceForge is a great idea. Maybe one project for the core and another for modules. Have the SourceForge “Home Page” link point to your website. Would you like to lead the charge or would you rather have someone else do it? I have to do some work coding today, but after that I can spend sometime on Cuyahoga. Send me an email and we can discuss the details.
sleuthI am really looking forward to your module document.
Ah right! Good you mention that :).
Now that 0.6 is out, I'll see if I can find some time to write something.
I think moving it to SourceForge is a great idea. Maybe one project for the core and another for modules. Have the SourceForge “Home Page” link point to your website. Would you like to lead the charge or would you rather have someone else do it? I have to do some work coding today, but after that I can spend sometime on Cuyahoga. Send me an email and we can discuss the details.
I've been thinking about this. Move it to SourceForge or not... I don't want it to be one of the zillion dead projects over there. Before a move can happen we must have at least a nice team of enthousiastic people and a very clear vision about future developments.
I like the idea of separate projects for the core and the modules but at this moment I'm not aware of anyone who's actually building custom modules :).
I think you may have a “chicken and egg” (i.e. which came first) argument for moving to SourceForge. Moving to SourceForge will probably increase the hit rate and draw more people in to the project which may bring in more core developers that would normally not have come across Cuyahoga. If we continue development on Cuyahoga then we will generate active change file statistics and we have a chance of higher ranking in the SourceForge listings, hope you don’t mind I am using we now . Lastly if you decide not to do a SourceForge list then we should actively try to increase your Google ranking. If I search on “.net web site framework nhibernate” I don’t get your website until the bottom of the 2nd page. If I search “nhibernate portal” I don’t get your site at all (at least not 3 pages into it).
As for the “team” I will be developing with a database guy (I am also forcing him in to the role of Linux admin) and myself. I have pretty good enterprise C# skills and decent web skills (good at user control event bubbling but not so good at remembering which browser supports CSS hover for dropdown menus etc.). We are planning to build an enterprise portal solution for a vertical industry based on open source code. We want to be able to develop custom modules that we sell, but allow the customer to expand the solution, possibly in directions that we don’t want to develop (such as forums etc.). This way we can provide a solution that they can grow into and integrate with our tools while we provide them with the specialized industry tools they need.
Either way, SourceForge or not, I would like to come up with a unified development environment. Mainly I am worried about source branching and merging. Although it would also be nice to have a linux dev server that could do frequent compiles on both branches with a working site as an end result. The first project I would like to attempt is the multiple portal issue. This will have a ripple effect throughout the project. I don’t want this to necessarily stop other development, and I may want to merge baseline enhancements in to the new multi-portal branch so that they don’t drift too far apart. My intent is to come up with a new database schema. I (or my db guy) will probably do some analysis on rainbow and dotnetnuke to come up with the additional tables that we will need to fold into the Cuyahoga schema, and a new directory structure that is portal based. I will then write up a doc. I was then thinking that I would then generate mapping files, and do some impact analysis. I will then write another doc. It is my expectation that the skin templates and the “add a new site” modules will need to be modified. Additionally we may need to create a “File Manager” control.
Hmmm, I notice some different interests here. My goal has never been to build a complete enterprise portal solution but keep it small and managable so it will be easy to pick up and extend by other developers, not end-users. Correct me if I'm wrong, but the features you suggest would turn Cuyahoga in yet another DNN or Rainbow.
Well, I'm going to give it a good night's sleep. I really appreciate your input but I really have to give the future directions you suggest some extra thoughts. To be continued...
Hi Martijn,
Has anything new happened on the multiple portal front?
What exactly I'm thinking about are users, roles, templates and modules on a per site basis (and perhaps available on ALL sites).
Is it as simple as adding a site_id on those tables (roles, templates and modules), a new user_site table and getting the code to recognize the site variable or do you forsee any major obstacles?
Also - since it seems this is not a mainstream need - what do you recommend for the people that want this on how to proceed (branch, make db changes on cuyahoga and separate code to support multiple portals...)
(btw - when I write this I'm only aware of the CUY 1.0 source)
Thanks,
Full multi-site support (users/roles/templates/files) is planned for 2.0.
It's not too difficult when you just look at the domain model (just add the Site) but it also requires a lot of changes in the admin.
Also - since it seems this is not a mainstream need - what do you recommend for the people that want this on how to proceed (branch, make db changes on cuyahoga and separate code to support multiple portals...)
This is not a feature that is easy to merge or patch. I'd just make a branch to keep track of the changes.
Do people have comments on if a user is associated wtih more than one site?
I'm for having a user associated with more than one site, specially when/if the site is
used with one portal site (domain.com) and a bunch of sub-domains (sub1.domain.com),
it makes since to have the same username/password - even if there are different people
"managing" each site.
Yes, in a full multi-portal scenario it still must be possible to associate a single user to multiple sites. I remembered that DNN switched to users-per-site and they got a lot of complaints at the time.
Martijn, I'm glad you kept cuyahoga to core needs. After more thinking (including thinking out loud /my previous posts) - I think there Cuyahoga has the basics and should not be to hard for module developers to extend to beef up the multi-portal support.
Also - what is the intent of having a roleId column in the site table?
I noticed that if the code was added that would NOT let a user log in if they were NOT part of the site's roleId - it would enable a lot of the multi-portal functionality (the admin would also have to create a separate role for each site for finer grain of control - sounds like Linux)
Also - I think some of the multi-portal needs are in regards to managing the portal vs the users. So that should probably be built into some (future) management modules (not core /admin).
PERSONALLY - I will be needing (and at some point creating) some sort of management tool for site managers that will be given their own "site" (sub-domain). Please contact me if anybody else is working on this type of module.
MODULES --
This management tool will also have a list of "allowed" modules the user can add to their site. So adding siteId to the moduletype table would not be useful. (this is in respone to my previous two post).
ROLES --
I havent thought much about this yet - but this tool will have to let the site manager be able to create roles (groups) that have a subset of the sites group, and be able to assign usage to section/nodes via those subset of roles/groups.
TEMPLATES --
no plans to do anything with templates
FILES
not something I'd thought about until I read it mentioned in a post. Other options to group these are by a role or user
This is writtern from a Module Developers prespective - so please throw your use cases and ideas into the mix.