Hi,
How do I extract the current page ID (to $id)?
I would like to do something like this:
$contactform = new TreeDropdownField("ContactformID","Contactform","SiteTree");
$contactform->setTreeBaseID($id);
$contactform->setFilterFunction(create_function('$item','return $item->ClassName == "ContactForm";'));
$fields->addFieldToTab("Root.Content.Main",$contactform);
This way I would like to retrieve all contactforms that are children of the current page.
If I'm asking something that's impossible: please tell me. Otherwise: give me a clue ;-)