Search

I want to run some code if an event is successful. Should I be using EventPostSaveFilter? Does this only get fired on success?

Currently, I use the redirect functionality to append ?success and check for the GET variable (same as the Symphony admin interface). Something annoying is that if the user refreshes, they get are running the success code again. A work around I've implemented is to use Javascript and the HTML5 History API to replace the URL immediately on page load.

Doesn't events return something in xml, like:

/data/:EventName:/@result

or

/data/events/member-login-info/@logged-in

easy can be checked via xslt?

I think Pat means within PHP.

The EventFinalSaveFilter would be your best bet to try out. the EventPostSaveFilter fires when an event saves to a section, so if your event doesn't do this, then it may not fire.

I've not hooked into event delegates myself yet, but the final save one looks right.

@moma: XML is not returned when redirecting

@designermonkey: Thanks. I'll look into that

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