Setup on child pages issue.

Permalink
I added a block to to the page type default. Moved the block in relationship to other default blocks. Then I clicked "Setup on Child Pages". After this was applied I went to the child pages and found that the position information had not been "Setup". The object were on the page but in default lower position instead of where I added them in relation to other default blocks.

 
ScottC replied on at Permalink Reply
ScottC
and is in feature requests.

I spent a few minutes looking into how the block orders are stored and this doesn't seem at least to me a simple thing to change as it has to "guess" either way at where to insert, and if you have more blocks on different pages than others how do you handle that?

It almost has to be a "my block i added is the 2nd one down, so i want all children pages to have this block as the second one down".

I could see a re-index and put this block at the top, use default at the bottom, or at n'th blocks down in this area on all children pages as at least a start.
virtuepaintball replied on at Permalink Reply
Is this still an issue? I have 138 pages on a new site we're developing and I'd like to add in a block in the right hand column above the other default blocks on the same page type.

For clarification, it's 130 pages of the same page type. Each have 2 blocks on the right column. I'd like to add a 3rd block and move it to the top of the list, rather than the bottom.

Is there away to update this position on all pages?
synlag replied on at Permalink Reply
synlag
you can create a page type controller for you're page and invoke for example a function in your page type controller class:

on_before_render(){...}

which then could grab all blocks for a particular area and rearrange them.

Further reading events:
http://www.concrete5.org/documentation/developers/system/events...

Further reading page type controllers:
http://www.concrete5.org/documentation/developers/pages/mvc-approac...