TDH_2/plugins/timfoerster/newspdf
Amanmyrat ad377e673e Add themes and plugins 2023-05-09 16:26:47 +05:00
..
controllers Add themes and plugins 2023-05-09 16:26:47 +05:00
lang Add themes and plugins 2023-05-09 16:26:47 +05:00
models Add themes and plugins 2023-05-09 16:26:47 +05:00
updates Add themes and plugins 2023-05-09 16:26:47 +05:00
LICENSE Add themes and plugins 2023-05-09 16:26:47 +05:00
Plugin.php Add themes and plugins 2023-05-09 16:26:47 +05:00
README.md Add themes and plugins 2023-05-09 16:26:47 +05:00
plugin.yaml Add themes and plugins 2023-05-09 16:26:47 +05:00

README.md

PDF support for News and Newsletter

Integrates DynamicPDF into Newsletter and News to attach/generate PDF's to a post.

Main feature

  • Generate PDF's to a news

Installation

  1. Go to the Settings > Updates & Plugins page in the Backend.
  2. Click on the Install plugins button.
  3. Type the PDF support for News & Newsletter text in the search field.

Usage

In News

  • Button for previewing PDF when editing a news. (Note: Save before generating the PDF)
  • After every change a new PDF is generated, located in media/newsletter/:slug.pdf

Code

Indikator\News\Models\Posts has two new relations:

  • pdf: Is the attached pdf file (see System\Models\File)
  • newsPdf: TimFoerster\NewsPdf\Models\NewsPdf the extended model with a template_code field, where the current selected template is stored.

PDF Template

To change a PDF layout or template, see DynamicPdf.