Open mdlama opened 3 weeks ago
Actually, I think app overrides still work. Group announcements plugin calls Hubzero\Mail\View
, with base_path = __DIR__
, i.e. once we override cron forum plugin and it is in the app directory, the base_path
will point to the correct place.
echo $html; die;
incore/plugins/cron/forum/forum.php
(line 197).NOTE: App overrides do not exist for mail views!!
Example:
This gets called in
core/plugins/cron/forum/forum.php::sendEmail
:Unfortunately, template overrides don't work here (i.e.
app/templates/bmc/html/emails/digest_plain.php
won't get called).Solution:
Override
Hubzero\Mail\View
in a similar fashion toHubzero\View\View
.