Page 1 of 1

[SOLVED] Page Blocks Ordering Bug

Posted: Sat Feb 28, 2009 1:03 am
by icebrian
I was using Page Blocks and aparrently came by a bug when ordering. After changing the order of blocks I press the submit button and am redirected to the login page.

While searching for the module page I found it is no longer being developed in favour of http://forum.cmsmadesimple.org/index.php?topic=22988.0 which I think is a shame since I consider this method easier for non-tech people. Also, what happens if I do have child pages that I do not want to include as page blocks?

Well anyways I have tried the new method and it works but some of the blocks I am adding have diferente templates and content fields. So how can I check which template is being used? Or how do I get arround this? Or does anyone know how to fix the problem with Page Blocks?

Thanks

[SOLVED] Page Blocks Ordering Bug

Posted: Sat Feb 28, 2009 1:50 am
by icebrian
Solved the bug, basically changed line 289 in action.defaultadmin.php

from

Code: Select all

$sortableLists->printForm('moduleinterface.php?module=PageBlocks', 'post', 'Submit', 'button');
to

Code: Select all

$sortableLists->printForm('moduleinterface.php?'.CMS_SECURE_PARAM_NAME.'='.$_SESSION[CMS_USER_KEY].'&module=PageBlocks', 'post', lang('submit'), 'button');