Method for Module Interacting with other Modules - Extra Field Class?
Posted: Fri Oct 16, 2009 5:12 pm
I am curious whether the module class allows a way for one module to modify another. I can think of two examples where this ability would be useful:
Example #1 - Authors as an extra field
Suppose you have a client who is an online content publisher. You want to use either News or CGBlog as the article engine. But you want to create a separate module for Authors that generates a bio page with links for each Author in the system.
But now you need to put a dropdown list of Authors as an "Extra Field" for the Article/News module. This list is dynamically generated by the Authors module.
Example #2 - You want to build a tags module to work with news, with auto-suggestions, similar to the tagging module in Wordpress.
If there was some kind of "Extra field class" that would allow one module to register with another as the supplier of an Extra Field with a dropdown menu, this would allow some very powerful mods.
Anything like that exist? Should it exist?
Example #1 - Authors as an extra field
Suppose you have a client who is an online content publisher. You want to use either News or CGBlog as the article engine. But you want to create a separate module for Authors that generates a bio page with links for each Author in the system.
But now you need to put a dropdown list of Authors as an "Extra Field" for the Article/News module. This list is dynamically generated by the Authors module.
Example #2 - You want to build a tags module to work with news, with auto-suggestions, similar to the tagging module in Wordpress.
If there was some kind of "Extra field class" that would allow one module to register with another as the supplier of an Extra Field with a dropdown menu, this would allow some very powerful mods.
Anything like that exist? Should it exist?