C5 Database Schema
But you are indeed in luck because the concrete5 Block interface allows you to move a block. All you need to do is make yourself a soup of 1 Block, 1 Page, and 1 Area.
/** * 1st lets grab the block * Change 7 to your blocks ID * Or this might just be in a foreach loop etc */ $block = Block::getByID(7); /** * Ok, we have the block * Great, let's get a destination page * Again with the 7 part, change as needed */ $page = Page::getByID(7); /** * Ok, almost there * Let's set a destination Area
Hope that helps out with doing it the concrete5 way.
On top of that, you can always create a temporary file in the /tools directory and place your script there and call it with
Replace the example.org and note that myscript doesn't have the php, but the actual file in the /tools directory needs the .php
Also, be sure to disable your Overrides Cache while doing this.
The big perk of launching scripts from the tools directory is that you get all the concrete5 bootstrapping and autoloaders all set up for you already.