Hiding Table Plugin

teoyh

Member
Hi please see attach.

I would like to hide the Plugin Button in the List Table under certain condition.

In 2.1.1 I can actually edit the followin script in default.php
Code:
foreach ($this->pluginButtons as $pluginbutton) {
            if (strstr($pluginbutton, 'value="Update Domain"')) {
                if (strlen($domain)>0) {
                    echo " " . $pluginbutton;
                }
            }
}

But moving to Fabrik 3 , It seem that its not working anymore as it become listplugin. Appreciate somebody can help.
 

Attachments

  • Plugin_Button.jpg
    Plugin_Button.jpg
    5.7 KB · Views: 171
$domain is a query perform from mysql query. The variable is stored in $domain for comparison purposed but it was not shown here.
 
use:
PHP:
foreach ($this->pluginTopButtonsas $pluginbutton) {
Pardon me but do i add this to default.php file or default_buttons.php.

I saw a similar code in default_buttons.php which look something like that ;
Code:
foreach ($this->pluginTopButtons as $b) {?>
    <li>
        <?php echo $b;?>
    </li>
    <?php }?>

But even if i mark out echo $b; there is no effect of the plugin button.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top