21309 Posts in 5738 Topics by 2603 members
| Go to End | ||
| Author | Topic: | 941 Views |
-
Re: Controlling a Class on a specific 'Branch'

19 August 2011 at 6:57am
Whoops we both replied at the same time there!
-
Re: Controlling a Class on a specific 'Branch'

19 August 2011 at 7:08am
The odds...
Anyway, I don't know about the getField thing - never had to use them, and it's been a while since I used the UserForms. But when located at the current page controller, at least the query might look something like this:
function ShowForm(){
$get = DataObject::get_one('UserDefinedForm', "ParentID = '{$this->ParentID}' AND Title = 'BrochureForm'");
return new UserDefinedForm_Controller($get);
} -
Re: Controlling a Class on a specific 'Branch'

19 August 2011 at 7:16am
Mate. I could honestly kiss you. haha. That worked! My troubles are solved! (At least until tomorrow)
Thanks!
| 941 Views | ||
| Go to Top |

