Search

Are there delegates so I can make changes to the authors-screen?

I used this code for a similar task in extension.driver.php:

/**
 * Add callback functions to backend delegates
 */
public function getSubscribedDelegates(){
    return array(
        array(
            'page' => '/administration/',
            'delegate' => 'AdminPagePreGenerate',
            'callback' => '__appendAssets'
        )
    );
}

/**
 * Append assets to the page head
 *
 * @param object $context
 */
public function __appendAssets($context) {
    $callback = Administration::instance()->getPageCallback();

    // Append javascript for field settings pane
    if ($callback['driver'] == 'blueprintssections' && is_array($callback['context'])){
        Administration::instance()->Page->addScriptToHead(URL . '/extensions/grouped_selectbox_link/assets/section.js', 100, false);
    }
}

If you replace blueprintssections with symstemauthor it should work for you.

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