OK, ASMSelect did the job perfectly. Thanks!
Another question:
In Hello world example module admin pages are restricted by: if($page->template == 'admin') return;
$template array also holds another admin pages like role and user so is there some easy way skip these in loop without naming all of them?
foreach ($this->templates as $t) {
if ($t != 'admin') { // !in_array($t, array(admin,role,user)); is this proposed way?
$f->addOption($t->id, $t->name);
}
}
I just need same template names that are visible on Setup > Templates.