Importiere Bilder / Prüfe auf Duplikate vor dem Import#216
Open
wackerm wants to merge 12 commits into
Open
Conversation
Erkenne Spalten beim Import anhand der Feldnamen. Füge neues Feld für Gallery hinzu. Dabei werden Einsatzbilder, die bereits per FTP hochgeladen wurden, mit dem jeweiligen Einsatz verknüpft. Die relativen Pfadangaben zu /wp-content/uploads/... stehen dann als Kommaseparierte Liste im Feld "Gallery". Also z.B. "images/1/123.jpg, images/2/234.jpg".
Füge Feld gallery => Einsatzbilder für Import hinzu
Owner
|
Vielen Dank! Für ein Review muss ich mir mal mehr Zeit nehmen. Ebenso um herauszufinden, wie das mit #212 zusammengeht. Das hatte ich zwischendurch mal auf Eis gelegt, um das Release fertig zu bekommen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Es gibt neues Feld "gallery", bzw. "Einsatzbilder" in der CSV-Import-Datei.
Damit ist es möglich, Einsatzbilder, die bereits auf unter dem Pfad
/wp-contents/uploads/...gespeichert sind (z.B. per FTP-Upload) den Einsätzen beim Import automatisch zu zuordnen. Siehe Feature Request: Import mit Bild/Gallerie #202.Außerdem wurde eine simple Dublettenprüfung eingebaut (nach Einsatznummer), die verhindert, dass die Einsätze mehrfach angelegt werden, wenn der Import (zum Beispiel aufgrund von Timeouts) mehrfach hintereinander ausgeführt wird. Auch bestehende Bilder (in der Mediathek) werden beim Import erkannt.
Zudem wurde (aus Gründen der Bequemlichkeit) ein Vorschlag für das Mapping der Spalten anhand der Spaltenüberschriften in der CSV eingebaut. Damit müssen beim Import mit entsprechenden Spaltennamen, die Spalten nicht alle erst mühsam im Dropdownfeld zugeordnet werden. Die Zuordnung kann aber natürlich je nach Gusto vor dem Import noch angepasst werden.