4 users online. Create an account or sign in to join them.Users

Search

I was wondering if it is posible to give an event a ‘final’-state. I have some custom code now in my event.xxx.php file in my workspace/events-folder. But when I go to Symphony and edit my event and click on ‘Save Changes’, the PHP file gets re-generated and my custom code gets lost!

Is there a way to give the event a final-state or something so the ‘Delete’- and ‘Save Changes’-button don’t get displayed? I see it is possible with the ‘Login Info’-event for example, but I cannot see in it’s PHP-code how they accomplished this.

Is there a way to do this?

Just change

    public static function allowEditorToParse(){
        return true;
    }

to

    public static function allowEditorToParse(){
        return false;
    }

and the event editor only shows the help section of your event.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details