[Frage] Powermail-Formular als News speichern inkl. Bild TYPO3-Version: 8.7.9


  • 1
  • schmitz schmitz
    Padawan
    0 x
    50 Beiträge
    1 Hilfreiche Beiträge
    25. 07. 2019, 14:09

    Ok, habs selber hinbekommen:

    # Deaktiviert das Speichern von Powermail-Datensätzen
    plugin.tx_powermail.settings.setup.db.enable = 0

    # Setzt den Speicherort für die Bilder
    plugin.tx_powermail.settings.setup.misc.file.folder = fileadmin/dein/Ordner/
    module.tx_powermail.settings.uploadPath = fileadmin/dein/Ordner/

    plugin.tx_powermail.settings.setup {
    dbEntry {
    1 {
    _enable = TEXT
    _enable.value = 1

    _table = TEXT
    _table.value = tx_news_domain_model_news

    # Die ID des Sys-Ordners in der die News gelistet werden
    pid = TEXT
    pid.value = 53112

    tstamp = TEXT
    tstamp.data = date:U

    crdate = TEXT
    crdate.data = date:U

    cruser_id = TEXT
    cruser_id.value = 1

    # value 1 = News ist verborgen und muss erst freigegeben werden
    hidden = TEXT
    hidden.value = 1

    # ueberschrift ist die Powermail Variable ohne {} in diesem Fall "title"
    title = TEXT
    title.field = title

    # untertitel ist die Powermail Variable ohne {} in diesem Fall "shortsummary"
    teaser = TEXT
    teaser.field = shortsummary

    # beschreibung ist die Powermail Variable ohne {} in diesem Fall "text"
    bodytext = TEXT
    bodytext.field = text

    datetime = TEXT
    datetime.data = date:U

    # name ist die Powermail Variable ohne {} in diesem Fall "author"
    author = TEXT
    author.field = author

    # Bildzuweisung aktivieren
    fal_media = TEXT
    fal_media.value = 1
    }
    2 {
    _enable = TEXT
    _enable.value = 1

    _table = TEXT
    _table.value = sys_file

    pid = TEXT
    pid.value = 0

    tstamp = TEXT
    tstamp.data = date:U

    missing = TEXT
    missing.value = 0

    # Die ID des Storage
    storage = TEXT
    storage.value = 1

    # Typ 2 = Bilder
    type = TEXT
    type.value = 2

    metadata = TEXT
    metadata.value = 0

    name = TEXT
    name.field = picture

    # Pfad relativ zum Storage definieren
    identifier = TEXT
    identifier.field = picture
    identifier.wrap = /dein/Ordner/|

    creation_date = TEXT
    creation_date.data = date:U

    modification_date = TEXT
    modification_date.data = date:U
    }
    3 {
    _enable = TEXT
    _enable.value = 1

    _table = TEXT
    _table.value = sys_file_reference

    tablenames = TEXT
    tablenames.value = tx_news_domain_model_news

    fieldname = TEXT
    fieldname.value = fal_media

    sorting_foreign = TEXT
    sorting_foreign.value = 1

    uid_local = TEXT
    uid_local.field = uid_2

    table_local = TEXT
    table_local.value = sys_file

    uid_foreign = TEXT
    uid_foreign.field = uid_1

    showinpreview = TEXT
    showinpreview.value = 1

    tstamp = TEXT
    tstamp.data = date:U

    crdate = TEXT
    crdate.data = date:U

    cruser_id = TEXT
    cruser_id.value = 1

    # Die ID des Sys-Ordners in der die News gelistet werden
    pid = TEXT
    pid.value = 53112
    }
    }
    }

  • 1