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
If there is a limit, am I able to increase it?
Tony
Which block are you using to display those?
We made a new block for 'Download Content'
Any luck? I've got a client chasing, please…
There might be a block limit set in your area. Just check your page type.
Rony
Rony
Hi Rony
There seems to be, is there a way around it?
Tony
There seems to be, is there a way around it?
Tony
Just open the page type assigned to that page in a editor. And find the area, something like
just remove the line $a->setBlockLimit(1); or increase the limit to more than 1.
Hope this helps!
Rony
$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
Thanks Rony, I'll give it a go.
Tony.
Tony.
Tony, is it really necessary to post promotion for your company here?
I expect it was an email reply and that was his standard email signature.
You are a kind person, John! :)
Yes, John's right. Sorry, it was the signature on an email reply, I'll remember next time.
Whats about the blocks? Is it still prevent to add more?
Rony
Rony
Still looking for it…
Found this:
But have no idea…
/** * 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; }
Viewing 15 lines of 18 lines. View entire code block.
But have no idea…