Can't add more blocks

Permalink
Is there a limit to the number of blocks I can add to a page? I have a downloads pagehttp://www.holfeldplastics.com/english/downloads/... and need to add another block for a new download but the grey area to add a block isn't there. If I delete two of the existing blocks the grey area comes back.
If there is a limit, am I able to increase it?
Tony

tonyclarkson
 
Blenderite replied on at Permalink Reply
Blenderite
Which block are you using to display those?
tonyclarkson replied on at Permalink Reply
tonyclarkson
We made a new block for 'Download Content'
tonyclarkson replied on at Permalink Reply
tonyclarkson
Any luck? I've got a client chasing, please…
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
There might be a block limit set in your area. Just check your page type.

Rony
tonyclarkson replied on at Permalink Reply
tonyclarkson
Hi Rony
There seems to be, is there a way around it?

Tony
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Just open the page type assigned to that page in a editor. And find the area, something like
$a = new Area('Area Name');
$a->setBlockLimit(1);  
$a->display($c);


just remove the line $a->setBlockLimit(1); or increase the limit to more than 1.
$a = new Area('Area Name');
$a->setBlockLimit(5);  
$a->display($c);


Hope this helps!

Rony
tonyclarkson replied on at Permalink Reply
tonyclarkson
Thanks Rony, I'll give it a go.

Tony.
okapi replied on at Permalink Reply
okapi
Tony, is it really necessary to post promotion for your company here?
JohntheFish replied on at Permalink Reply
JohntheFish
I expect it was an email reply and that was his standard email signature.
okapi replied on at Permalink Reply
okapi
You are a kind person, John! :)
tonyclarkson replied on at Permalink Reply
tonyclarkson
Yes, John's right. Sorry, it was the signature on an email reply, I'll remember next time.
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Whats about the blocks? Is it still prevent to add more?

Rony
tonyclarkson replied on at Permalink Reply
tonyclarkson
Still looking for it…
tonyclarkson replied on at Permalink Reply
tonyclarkson
Found this:

/** 
    * Sets the total number of blocks an area allows. Does not limit by type.
    */
   public function setBlockLimit($num) {
      $this->maximumBlocks = $num;
   }
   function setAttribute($attr, $val) {
      $this->attributes[$attr] = $val;
   }
   function getAttribute($attr) {
      return $this->attributes[$attr];
   }
   function disableControls() {
      $this->showControls = false;
   }


But have no idea…