I think you first require to put more info like why we need this
feature in the core with some background (perhaps there is other
solution for this problem). In addition, describe the solution in
this stage (module helper), what send for the trigger and why,
etc.
Let's start with this and let's keep going.
Ofer Cohen Joomlics Anonymous Group
https://github.com/joomla/joomla-platform/pull/352#issuecomment-3822504
thanks for participate
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/GrwlGJF2bqMJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
An example use case is a gallery component which has an accompanying
module. While initially we would like to display said module on all
pages included in the gallery component, we only want to do it if some
criterias are met. These criterias could be anything, X minimum number
of pictures, X days since last update, etc.
While the module theoretically could handle this itself and not spit
out any output in those cases, it will still end up being counted by
countModules() and in the various template frameworks out there that
means that the module position it is in will be shown along with the
chrome of that module. So if that module is the only one in that
position we will get empty areas on the template.
As I see it, this pull request implements only flexibility and there
are no real drawbacks. I agree with Andrew that the event should be
called onModulesBeforeLoad()
Cheers,
Rune
Why should it be triggered for the array of modules and not for
each module?
Ofer Cohen Joomlics Anonymous Group