Search

I need to modify the event email filter, but I can't do it globally since I use it for multiple forms that need totally different email outputs. Where is the best place to do this modification? Would an extension handle this?

Specifically I'm looking to change the email output contents, and to allow emailing to an input field value (email the form submitter).

Unfortunately the code related to sending emails is burried deep within /lib/toolkit/events/event.section.php around line 143. An extension could add a new Event filter that does what you want. The delegate EventPostSaveFilter is used for running any custom filters. You also need to use the delegate AppendEventFilter found on /blueprint/events/ in order to add the new filter to the list.

http://pastie.org/205778

That is a start. Should at least give you the hooks into Symphony you need. Let me know how you go.

Around line 234 of event.section.php there is:

## TODO: Allow extensions to run their filter rules

Might this mean that extension-based filters aren't implemented in rev5?

That should have been removed. The delegate is up around line 150 or so. EventPostSaveFilter

@ashooner: If you have some working code, would you post it here?

@michael-e:

I will, but I'm new to extensions, so it may be a while. If I come up with some crufty stop-gap, I'll post that as well.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details