Hi all,
I am creating a page field (field of type FieldtypePage) via the API, however im still trying to find some documentation as to how I would go about setting the Selectable Pages for said field using the API.
From what I have found it looks like it involves the use of, albeit this looks like a getter rather than a setter:
$field->getInputfield($page)
Which looks like it would make sense if I wanted to specify the selectable pages by a parent page, but what if I wanted to specify it by say a template?