Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENHANCEMENT Allow editing of new File.ShowInSearch flag through Asset…

…TableField
  • Loading branch information...
commit bb757d13a4142a4b0fab680240bde1a064c338a4 1 parent d15e850
Ingo Schommer chillu authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 code/AssetTableField.php
6 code/AssetTableField.php
View
@@ -194,6 +194,12 @@ function getCustomFieldsFor($childData) {
)
);
}
+
+ if(!($childData instanceof Folder)) {
+ $mainTab->push(
+ new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch'))
+ );
+ }
if($childData && $childData->hasMethod('BackLinkTracking')) {
if(class_exists('Subsite')) Subsite::disable_subsite_filter(true);
Please sign in to comment.
Something went wrong with that request. Please try again.