Remove "Edit" block option
Permalink 1 user found helpful
I have a block that uses information from another block, as such the edit option is redundant really.
I wasn't going to include the edit.php file with the block, but I see the option to edit is there regardless, and errors if I don't include the file in the block.
Is there a way to remove the edit menu option on instances of this block?
Thanks
Ollie
I wasn't going to include the edit.php file with the block, but I see the option to edit is there regardless, and errors if I don't include the file in the block.
Is there a way to remove the edit menu option on instances of this block?
Thanks
Ollie
I don't think there's a way to remove the "edit" option. The best alternative I can think of is to include the edit.php file but rip out the form fields and just have it display a message like "to edit this block, go to this other block instead".
Note that all blocks must have at least 2 fields in the database -- a "bID" field and at least one other field of any kind (I just create a text field and call it "placeholder" or "dummy"). This field won't get used at all but it needs to be there otherwise you will get errors when trying to work with the block.
Good luck!
-Jordan
Note that all blocks must have at least 2 fields in the database -- a "bID" field and at least one other field of any kind (I just create a text field and call it "placeholder" or "dummy"). This field won't get used at all but it needs to be there otherwise you will get errors when trying to work with the block.
Good luck!
-Jordan
Cheers both your replies help.
but using advanced permissions you can