My edit form is getting too long and I'm trying to split it.
1. I've created a new special block in the sys_page_compose table and copy the same line Func = INFO and gave it a new Func = NewGroup
2. In edit.php I've copied the section of function getBlockCode_Info() { to getBlockCode_NewGroup() {
3. in bxDolProfileFields.php I've copied function getFormEdit($aParams) into function getFormNewGroup($aParams)
in function getFormCode($aParams = null) I've add at the end:
switch ($this->iAreaID) {
// join
case 1:
$aForm = $this->getFormJoin($aParams);
break;
......
// Yossi - My New Group
case 12:
case 13:
case 14:
$aForm = $this->getFormsNewGroup($aParams);
break;
However I'm not sure I did the right thing here since I'm not sure from where it gets ($this->iAreaID) so it will execute (12 - 14)
Now in the NewGroup I want to show only few Blocks from the list and the rest in the new group.
Where I can control the $aBlocks?? is it coming only from the cache?
If i could perfom an If or Case in Info and NewGroup I could control the forms block list
I'll appreciate if someone can help me.
