Skip to content

deleteBlock, cloneBlock, ReplaceBlock still not working!! #2775

Open
@ozilion

Description

@ozilion

Hi all,

Isn't there any solid solution for this block removal or replacement issue? I've tried every suggested solution but nothing worked, I use version 1.3 and PHP v8.2

I know there are bunch of opened issues but I tried all of them nothing works. Here is the code I tried lastly but no chance at all

if (isset($pot['iso900115varyok']) && ($pot['iso900115varyok'] == 0 || $pot['iso900115varyok'] == "0")) { echo "Attempting to delete 'deletekys' block<br>"; $docProcessor->replaceBlock('deletekys', ""); $docProcessor->deleteBlock('deletekys'); $docProcessor->cloneBlock('deletekys', 0); $docProcessor->deleteBlock('deletekys'); $docProcessor->cloneBlock('deletekys', 0); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions