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

Print PDF template start and end date list

Discussion in 'Community' started by germanoalves, Jul 22, 2021.

  1. germanoalves

    germanoalves Member

    Level: Community
    Hey;


    Is it possible to insert in the PDF layout of the list these filter dates (start and end) that are marked in the image below? If so, how would I do it?


    upload_2021-7-22_10-16-17.png

    Thanks!
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    Filter values are in
    $this->filters['table___element']->displayValue
     
  3. germanoalves

    germanoalves Member

    Level: Community
    Hey @troester ! Thanks for your help!


    is it possible to format these return dates?

    I tried to do it that way:
    "<?php echo $converted = date("d-m-Y", strotime($this->filters['table___element']->displayValue))?>"

    but to no avail.

    Thank you!
     
  4. troester

    troester Well-Known Member Staff Member

    Level: Community
  5. germanoalves

    germanoalves Member

    Level: Community
    sorry @troester but i didn't understand some points of the answer
    "I'm using the ranger filter"


    and I didn't understand this part

    thanks
     
  6. troester

    troester Well-Known Member Staff Member

    Level: Community
    https://fabrikar.com/forums/index.php?wiki/pdf-output/#filter-values
     
  7. germanoalves

    germanoalves Member

    Level: Community
    I already have this information, thank you and it already worked, but I need to format this return content, example, year and month (Y-m) only.
     
  8. lousyfool

    lousyfool Active Member

    Level: Community
    You cannot format multiple dates separated by comma at once, but only individually.
    So, you could e.g. first explode() them into an array, then loop through it.
     
    troester likes this.
  9. germanoalves

    germanoalves Member

    Level: Community
  10. juuser

    juuser Well-Known Member

    Level: Community
    There can be several reasons: e.g. webpage layout might not be suitable for A4 format; you need just part of the information in the pdf and not all the html; end-user doesn't have pdf printer installed or is not able to use browser's "save as pdf" function etc., etc., etc.

     
    Last edited: Aug 9, 2021

Share This Page