#284

Product support

Visit this product's website for support.

Categories

  • Miscellaneous
  • Social

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

Main feature

  • Generate PDF's to a news

Requirements

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.

Questions/Problems/Suggestions?

Just ask me!

These plugin(s) are required for the plugin:

This plugins listens to Posts::saved event to generate the PDF and stored it under storage/app/media/newsletters/SLUG.pdf.

The Posts model fields are extended with one field newsPdf[template_code] that displays all PDF templates.

The Posts model gets extended by two relations:

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

NewsPdf Model

  • Has one relation news to the Posts model of the news plugin.
  • Method generatePdf to generate the PDF with the current stored values in the database.
1.0.5

Fixing a bug with relation that sometimes has no id set

Aug 15, 2017

1.0.4

Extending news introductory and content with more fields

Jun 29, 2017

1.0.3

Updated table timfoerster_newspdf_newspdf

May 16, 2017

1.0.2

Adding plugin dependencies

May 16, 2017

1.0.1

builder_table_create_timfoerster_newspdf_newspdf.php

May 13, 2017