AnsweredAssumed Answered

How to enable follow option in custom module

Question asked by sidhu sidhu on Apr 12, 2016
Latest reply on Apr 14, 2016 by Emil Maran

Hi All

 

     I have created a custom module.I want to enable the 'follow' option.

In the record.php file of the custom module i have found the follow option but it was not showing in the record view.

Can any one please help me with this

 

record.js file Ajay Kumar Shijin Krishna

 

'panels' =>

        array (

          0 =>

          array (

            'name' => 'panel_header',

            'label' => 'LBL_RECORD_HEADER',

            'header' => true,

            'fields' =>

            array (

              0 =>

              array (

                'name' => 'picture',

                'type' => 'avatar',

                'width' => 42,

                'height' => 42,

                'dismiss_label' => true,

                'readonly' => true,

              ),

              1 => 'name',

              2 =>

              array (

                'name' => 'favorite',

                'label' => 'LBL_FAVORITE',

                'type' => 'favorite',

                'readonly' => true,

                'dismiss_label' => true,

              ),

              3 =>

              array (

                'name' => 'follow',

                'label' => 'LBL_FOLLOW',//how to enable this

                'type' => 'follow',

                'readonly' => true,

                'dismiss_label' => true,

              ),

            ),

          ),

Outcomes