AnsweredAssumed Answered

How do I make my custom edit view code to work on its Subpanel?

Question asked by Mukta Chourishi on May 2, 2014

I have custom code on my Contacts Edit View.  Have customized the file custom/modules/Contacts/views/view.edit.php.


I want the same code to work for Contact subpanel in other modules.How should I do this?

I have used  $this->useForSubpanel = true; but this is not working.

Below is the code I have used


In custom/modules/Contacts/view/view.customedit.php

require_once 'include/MVC/View/views/view.edit.php';    class ContactsViewEnjayedit extends ViewEdit  {       public function __construct() {          parent::ViewEdit();          $this->useForSubpanel = true;           $this->useModuleQuickCreateTemplate = true;       }      protected function _displayJavascript()          {                                 echo '<script type="text/javascript" src="custom/modules/Contacts/js/jquery-1.11.0.min.js"></script>';                  echo '<script type="text/javascript" src="custom/modules/Contacts/js/NjContact.js"></script>';                                            parent::_displayJavascript();            }      }