|
|
||
|---|---|---|
| .. | ||
| controllers | ||
| lang | ||
| models | ||
| updates | ||
| LICENSE | ||
| Plugin.php | ||
| README.md | ||
| plugin.yaml | ||
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
- Go to the Settings > Updates & Plugins page in the Backend.
- Click on the Install plugins button.
- 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\NewsPdfthe extended model with atemplate_codefield, where the current selected template is stored.
PDF Template
To change a PDF layout or template, see DynamicPdf.