->hideFromIndex()

This commit is contained in:
Benjamin Takats
2023-01-24 20:13:33 +01:00
parent b6a75aacaa
commit d8086d9201
12 changed files with 27 additions and 15 deletions

View File

@@ -78,7 +78,7 @@ class LibraryItem extends Model implements HasMedia, Sortable
->singleFile()
->useFallbackUrl(asset('img/einundzwanzig.png'));
$this->addMediaCollection('single_file')
->acceptsMimeTypes(['application/pdf'])
->acceptsMimeTypes(['application/pdf', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed', 'multipart/x-zip'])
->singleFile();
$this->addMediaCollection('images')
->useFallbackUrl(asset('img/einundzwanzig.png'));

View File

@@ -104,15 +104,17 @@ class LibraryItem extends Resource
->exceptOnForms(),
Images::make(__('Main picture'), 'main')
->conversionOnIndexView('thumb')->showStatistics(),
->conversionOnIndexView('thumb')
->showStatistics(),
Images::make(__('Images'), 'images')
->conversionOnIndexView('thumb')
->help('Upload images here to insert them later in the Markdown Description. But you have to save before.')
->hideFromIndex()->showStatistics(),
->hideFromIndex()
->showStatistics(),
Files::make(__('Downloadable File'), 'single_file')
->help('Für neue Datei-Typen bitte bei den Admins melden. (Derzeit: PDF)'),
->help(__('Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)')),
Select::make(__('Language Code'), 'language_code')
->options(

View File

@@ -696,5 +696,6 @@
"Filter": "",
"no location set": "kein Ort gesetzt",
"Open on Youtube": "Auf Youtube öffnen",
"You do not have permission to view the page.": "Du hast keine Berechtigung, die Seite anzuzeigen."
"You do not have permission to view the page.": "Du hast keine Berechtigung, die Seite anzuzeigen.",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "Bitte kontaktiere die Administratoren für neue Dateitypen, ansonsten packe die Dateien in ein ZIP! (Derzeit: PDF, ZIP)"
}

View File

@@ -690,5 +690,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}

View File

@@ -690,5 +690,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}

View File

@@ -691,5 +691,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}

View File

@@ -691,5 +691,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}

View File

@@ -691,5 +691,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}

View File

@@ -691,5 +691,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}

View File

@@ -691,5 +691,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}

View File

@@ -691,5 +691,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}

View File

@@ -665,5 +665,6 @@
"Filter": "",
"no location set": "",
"Open on Youtube": "",
"You do not have permission to view the page.": ""
"You do not have permission to view the page.": "",
"Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": ""
}