diff --git a/install.php b/install.php index ddeb7f9..7554aee 100644 --- a/install.php +++ b/install.php @@ -2,3 +2,17 @@ /* Tablesets aktualisieren */ rex_yform_manager_table_api::importTablesets(rex_file::get(rex_path::addon(rex_addon::get('neues')->getName(), 'install/tableset.json'))); + +if(!rex_media::get('neues_entry_fallback_image.png')) { + + rex_file::copy(rex_path::addon('neues', '/install/neues_entry_fallback_image.png'), rex_path::media('neues_entry_fallback_image.png')); + $data = []; + $data['title'] = 'Aktuelles - Fallback-Image'; + $data['category_id'] = 0; + $data['file'] = [ + 'name' => "neues_entry_fallback_image.png", + 'path' => rex_path::media('neues_entry_fallback_image.png'), + ]; + + rex_media_service::addMedia($data, false); +} diff --git a/install/neues_entry_fallback_image.png b/install/neues_entry_fallback_image.png new file mode 100644 index 0000000..e91ea63 Binary files /dev/null and b/install/neues_entry_fallback_image.png differ diff --git a/package.yml b/package.yml index 418342a..b27f0ba 100644 --- a/package.yml +++ b/package.yml @@ -56,6 +56,6 @@ pages: default_config: default_author: "Redaktion" - default_thumbnail: "" + default_thumbnail: "neues_entry_fallback_iamge.png" external_url_label: "Zur Website" editor: 'class="form-control redactor-editor--default"'