Add block (to top)

Permalink
Is there a way I can get blocks to appear at the top of an area rather than the bottom?

I'm aware you can move blocks once they have been added but I need the block to appear at the top as soon as it is added.

Cheers

PL

poorleno
 
poorleno replied on at Permalink Reply
poorleno
Can't believe this isn't possible/fudgable.
synlag replied on at Permalink Reply
synlag
http://www.concrete5.org/community/features/defaults_positioning
ryan replied on at Permalink Reply
ryan
There's no way to do this by setting an option for the area - or anything so simple as that (that I know of).

You could extend the Area class... something along these lines:

<?
Class NewFirstArea extends Area {
 public function getAreaBlocksArray() {
  $blocks = parent::getAreaBlocksArray();
  return array_reverse($blocks);
 }
}
?>


Hope that helps.