Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# clevster 4/14/2008 6:15 PM (edited 4/14/2008 6:16 PM)
I'm trying to develop a CCK-like module that is used with Drupal and I'm trying to do a few things which I'm not sure if Cuyahoga currently supports.

1) I'd like to make the module so that it won't appear as a selection when adding a section but will show up under manage modules. I am making another module which will tie into the CCK module. I'd also like make future modules to be able to tie into it, such as Views. The whole premise behind this is so that data can be shared across the entire site and used in different ways in different sections (i.e. the CCK module is not section dependent but instead is site dependent, similar to the article categories).

2) Is it possibly to have one module dependent upon another; meaning if the CCK module isn't installed then all other modules that require it would no longer show up as a selectable module when adding a section?

Any help would be appreciated.
# Efie 4/14/2008 7:33 PM
With Cuyahoga 1.5.2 the new module-loader is introduced. This one loads all modules when starting the application (global.asax), this makes it possible to depend modules on each other. These dependencies were a side effect (and in my opinion a really really great side effect) for the new module loader. So there is no dependency-checking mechanism available right now and it isn't possible to hide a module from the dropdownlist by a section. This would be a nice future feature for Cuyahoga though.
# clevster 4/14/2008 9:03 PM
Efie,
Thank you for your response. Looks like I'll have to take the single module route at this point.
# Efie 4/14/2008 10:02 PM
It depends a little bit who's going to use the admin-part (setting up pages etc.), if they are somewhat more 'advanced' users, it should be possible to explain them the mechanism. Another possibility would be modifying the module-loader/installer stuff in Cuyahoga, I think it isn't a hell of a job to make it work. A simple mechanism with some Attributes for the Module-classes will do the job I guess (DataModule/ViewModule, DisplayInModuleList etc.). It requires some code changes and some small database-modifications but it is really doable.
# clevster 4/18/2008 6:12 AM
As much as I'd like to modify the module loader I've found that it is never a good idea to modify the core. Especially when I find out that my module won't work after upgrading to a future versions, but thanks for the suggestion. I'm eagerly awaiting version 2.