Remove blocks from all pages of a certain pagetype
Permalink
Hi,
following discussions on this forum I found out how to add (via global scrapbook) a block to each (existing) page.
What I actually wanted to do is to replace a block (the slideshow) with another. The procedure to add a block and then pass this on to all children seems to only work for existing blocks, not for deleted ones.
Is there a way to change all pages in this way (e.g. remove a block everywhere), and if not, should there be?
Thanks a lot, Axel.
following discussions on this forum I found out how to add (via global scrapbook) a block to each (existing) page.
What I actually wanted to do is to replace a block (the slideshow) with another. The procedure to add a block and then pass this on to all children seems to only work for existing blocks, not for deleted ones.
Is there a way to change all pages in this way (e.g. remove a block everywhere), and if not, should there be?
Thanks a lot, Axel.
The problem is, all the pages now have two of the blocks: one old, one new. I was wondering how remove the extra block from all the pages (hopefully without going page to page -- which does seem to work)?
I suppose I could always go and change the block name in the page template PHP code and just recreate the block from the scrapbook under its new name, but that would leave residual 'zombie' blocks lingering around in the database. (Not the end of the world but... well, there must be a better way, mustn't there?)
It looks like the btContentLocal table is holding these two records. If I just delete the one I don't want from the database, will that break all kinds of dependencies?
Thanks,
Colin