Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ozilion opened this issue Apr 24, 2025 · 0 comments
Open

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

ozilion opened this issue Apr 24, 2025 · 0 comments

Comments

@ozilion
Copy link
Contributor

ozilion commented Apr 24, 2025

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); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant