Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

skipping over _cms templates from main selection

  • Loading branch information...
commit 79c4b084d40095b421b13df0481a93f74dc5e52a 1 parent 3e0548d
@icecaster icecaster authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 code/GridPage.php
View
4 code/GridPage.php
@@ -121,6 +121,10 @@ public function getSelectableTemplates() {
if($TemplateFiles = glob(Director::getAbsFile($this->TemplateDir()).$pre."*.ss")) {
foreach($TemplateFiles as $TemplateFile) {
$filename = basename($TemplateFile, ".ss");
+ //skip over cms templates
+ if(strpos($filename,"_cms")) {
+ continue;
+ }
if($filename != $pre) {
$filenicename = substr($filename, strpos($filename, "_")+1);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.