Skip to content

Instantly share code, notes, and snippets.

@janstieler
Last active November 2, 2018 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janstieler/cfcb155c3c534f9c02f9e7f19683c3be to your computer and use it in GitHub Desktop.
Save janstieler/cfcb155c3c534f9c02f9e7f19683c3be to your computer and use it in GitHub Desktop.
Remove Templates from Module adding form
site/plugins/sortable/sortable/actions/add/forms/add.php
foreach($page->blueprint()->pages()->template()->filterBy('name', '*=', $field->prefix()) as $template) {
$options[$template->name()] = $template->title();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment