Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# dagda1 10/23/2006 4:27 AM
Hi all,

Can anyone explain or point me to a link that explains the purpose of the IActionProvider interface.

I am looking at some way of linking modules together and was wondering if this interface might provide me with the mechanics of doing this.

Thanks

Paul
# martijnb 10/23/2006 5:00 PM
dagda1Can anyone explain or point me to a link that explains the purpose of the IActionProvider interface.

I am looking at some way of linking modules together and was wondering if this interface might provide me with the mechanics of doing this.

Yes, you're right with this. Take the existing SearchInputModule as an example. It implements IActionProvider and exposes one Action called 'Search' without any specific parameter. Then there is the SearchModule that implements IActionConsumer and can accept the same action. In the admin interface you can connect these two modules (from a section with a SearchInputModule to a section with a SearchModule). When adding a connection to a section, Cuyahoga tries to find other sections with IActionConsumer modules that have the signature as the IActionProvider.

Another example can be found in the UserModule that can connect to the ProfileModule.

Hope this helps.