1. Important notice about Cloudbleed - if your site uses the Cloudflare CDN, and you intend to follow the Joomla security team's advice to change your site "secret", you MUST READ THIS NOTICE.
  2. Fabrik 3.6 Released Remember to backup and test your backup before proceeding with this update. Please report any problems you might experience with this new version here on the forum. You are safe to upgrade to Joomla! 3.7 and PHP 7.x with this version of Fabrik. View the blog for more details on this release.

Can Delete Row list plugin

Aug 12, 2013
Can Delete Row list plugin
  • This plug-in provides a fine grained control over which records can be deleted from a list and from a form view.

    The list's Access->delete records option takes precedence over this plugin. That is to say that if you are logged in as a registered user, and the list's delete records option is set to Special, then no records can be deleted, regardless of any match that might be made with this plugin.

    • Access - Which Joomla user access level will the plug-in be applied to
    • Element - The element whose value we well be using to determine if the row can be deleted
    • Use Raw - Should we use the raw value stored in the database, or the label.
    • Operator - Should we show the delete button, when the 'Element's value equals or does not equal the value defined in 'Value'
    • Value - defines the value to compare against
    With the example settings above our list will appear as in the image below. As record id 1 has skill equal to 'card-sharp', its delete button is shown.


    • PHP (eval) - overrides the standard element, use raw, operator, and value options, and instead evaluates a PHP statment.
    We could achieve the same result as previously set up by entering this code in the PHP textarea.

    return '{list_plugin_candeleterow___skill_raw}' === 'card-sharp';
    As you can see from the example above, the PHP (eval) textarea accepts the use of placeholders
  • Loading...