1. Fabrik 3.7 is now available. This version contains critical security updates, please update as soon as possible. Please remember to backup your site before updating, we also recommend testing your updates on development sites if possible.
  2. We had to restore the site around midday (CST) on Wed 7/26 from a backup approximately 8 hours old. So a few posts in the forums were lost. You may want to check to see if you need to re-post anything.
  3. The release of Fabrik for J! 3.8 is not yet ready. Do not update your sites to J! 3.8 until this notice is removed.

Copying a plugin

May 31, 2015
Copying a plugin
  • Lets say we want to copy the list plug-in 'caneditrow' as a basis for us to start work on a new plug-in, called 'custom_can_edit'.

    First of all copy the folder:
    and rename it to
    rename caneditrow.php to custom_can_edit.php
    rename caneditrow.xml to custom_can_edit.xml

    edit custom_can_edit.xml file and change the string in:

    Code (XML):

    <name>Can Edit Row</name>
     
    to

    Code (XML):

    <name>Custom Can Edit Row</name>
     
    then replace 'canedit' in this line

    Code (XML):

    <filename plugin="caneditrow">caneditrow.php</filename>
     
    with custom_can_edit:

    Code (XML):

    <filename plugin="custom_can_edit">custom_can_edit.php</filename>
     
    Rename the class name in custom_can_edit.php

    to

    Rename the language files in the respective language folder(s)

    to