1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

mPDF file name

Discussion in 'Community' started by deant, Oct 22, 2021.

  1. deant

    deant Member

    Level: Community
    Hi,

    I like to set pdf file name when user dowload report. By default the pdf downlod file name is Table name - rowId I thing.

    I like to create pdf file name from some data which are included in form like customer name, No.invoice...

    Any clue how to do it?

    Thx
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    You add an override for components\com_fabrik\layouts\form\fabrik-pdf-title.php
     
    jmoises and deant like this.
  3. deant

    deant Member

    Level: Community
    Great...I didn't now for this file at all.

    Thanks a lot.
     
  4. jmoises

    jmoises Member

    Level: Community
    i was looking for this too thanks so much, one big question can this be on a form template folder? that way only change the name in the form selected?

    thanks
     
  5. troester

    troester Well-Known Member Staff Member

    Level: Community
    Yes, copy
    components\com_fabrik\layouts\form\fabrik-pdf-title.php
    to
    components\com_fabrik\views\details\tmpl\your-PDF-template\layouts\form\fabrik-pdf-title.php
    and modify as you need
     
    jmoises likes this.
  6. jmoises

    jmoises Member

    Level: Community
    great Thank so much
     

Share This Page