Initial release
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# mummert-media/newssubmission-bundle
|
||||
|
||||
Contao 5.7 bundle for frontend news submissions with Symfony Forms, FilePond uploads and Altcha for anonymous users.
|
||||
|
||||
## Installation
|
||||
|
||||
1. Bundle als Composer-Paket in das Contao-Projekt einbinden.
|
||||
2. `composer update mummert-media/newssubmission-bundle`
|
||||
3. `ddev exec vendor/bin/contao-console contao:migrate --no-interaction --no-ansi`
|
||||
4. `ddev exec vendor/bin/contao-console cache:clear --no-ansi`
|
||||
|
||||
Hinweis: Die Datenbankfelder werden über die DCA-SQL-Definitionen des Bundles von `contao:migrate` angelegt.
|
||||
|
||||
## Backend-Konfiguration
|
||||
|
||||
1. Frontend-Modul **News-Einreichung** anlegen.
|
||||
2. Felder setzen: `author`, `newsArchive`, `uploadFolder`, `thankYouPage`.
|
||||
3. Tags einschränken über `allowedTags`.
|
||||
4. Modul auf einer internen oder öffentlichen Seite einbinden.
|
||||
|
||||
## Verhalten
|
||||
|
||||
- Eingeloggt: Speicherung in `tl_news.submittedByMember` (UUID aus `tl_member.uuid`).
|
||||
- Öffentlich: `submittedByMember` bleibt leer, optional `submittedByName`/`submittedByEmail`.
|
||||
- Immer als Entwurf (`published=0`).
|
||||
- Bild-Uploads laufen über FilePond-Endpoint mit temp storage und finalem Move beim Submit.
|
||||
- Fotograf wird in `tl_news.caption` gespeichert (`Foto: <Name>`).
|
||||
Reference in New Issue
Block a user