TOPIC:

PDF Export ohne Kopfzeile 7 years 11 months ago #77161

  • mzungu's Avatar Topic Author
  • mzungu
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Hallo miteinander,

jetzt hatte ich schon alles durchsucht aber nichts passendes gefunden auch nicht im Englischen.
(vielleicht auch blind :lol:)
Nun mein Anliegen:
Beim Export versende ich z.B. ein PDF das ich dann auf den jeweiligen Emails erhalte, nun ist es so, dass in der Kopfzeile meiner Meinung nach Sachen stehen die der jenige nicht benötigt.
Formular ID: 14
Formular Titel: Aufnahmeantrag
Form Name: XXXXXX
Gesendet um: XXXXXX
Absender IP: XXXXX
Benutzer-ID: 0
Benutzername: -
Name: -
Absender Provider: Unbekannt
Absender Browser: XXXXX
Absender Betriebssystem: XXX

Kann man dies irgendwo bearbeiten oder weglassen, wenn ja wo.
Hatte schon einmal etwas getestet funktionierte aber nicht.

Danke schon einmal für die Infos
Gruß
Roman

Please Log in or Create an account to join the conversation.

Re: PDF Export ohne Kopfzeile 7 years 11 months ago #77190

  • djhargrove's Avatar
  • djhargrove
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Official Support
  • Posts: 3419
  • Thanks: 222
Changing the export's PDF template
I want to see a specific fields and in a different format. Do you know how I can call a specific field (not all fields) using php for example?
This requires to edit the export_pdf.php but I would suggest you use an alternative template.


Please copy the file /administrator/components/com_breezingforms/pdftpl/export_pdf.php under the same location and name it export_custom_pdf.php. BF will then pick it automaticaly and it is protected from BF upgrades.

Here is an example how you could perform custom layouts and selecting on the fields that you need:

Replace this in the pdf export template:
<?php
$subs = $this->getSubrecords($rec->id);
$subsSize = count($subs);
for($s = 0; $s < $subsSize; $s++) {
    $sub = $subs[$s];
?>
<tr>
<td>
    <strong><?php echo htmlentities($sub->title, ENT_QUOTES, 'UTF-8'); ?>:</strong> 
</td>
<td>
    <?php echo nl2br(htmlentities(substr($sub->value,0,10000), ENT_QUOTES, 'UTF-8')); ?> 
</td>
</tr>
<?php
}
?>
With this (example with name and email fieldnames):
<?php
$name = '';
$email = '';

$subs = $this->getSubrecords($rec->id);
$subsSize = count($subs);
for($s = 0; $s < $subsSize; $s++) {
    $sub = $subs[$s];
        switch($sub->name){
            case 'name':
                $name = nl2br(htmlentities(substr($sub->value,0,10000), ENT_QUOTES, 'UTF-8'));
                break;
            case 'email':
                $email = nl2br(htmlentities(substr($sub->value,0,10000), ENT_QUOTES, 'UTF-8'));
                break; 
        }
}
?>
<tr>
<td>
    <strong>Name:</strong>
</td>
<td>
    <?php echo $name; ?>
</td>
</tr>
<tr>
<td>
    <strong>Email:</strong>
</td>
<td>
    <?php echo $email; ?>
</td>
</tr>


This will only render the fields "name" and "email" with your desired layout.

Additionally you can remove the head data or parts of it if you don't need it.
The following user(s) said Thank You: mzungu

Please Log in or Create an account to join the conversation.

Re: PDF Export ohne Kopfzeile 7 years 11 months ago #78480

  • mzungu's Avatar Topic Author
  • mzungu
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Hy djhargrove, (at first sorry for this englisch :laugh:)

sorry that i wrote not earlier, but at first ....

.....thank you for the answer, it works not in Quickmode (i mean), maybe only in easy mode.
I can do what i want. I fill in the Form, but when i send this form and i look in the pdf, it is always the same.

Very mysterious or i forgot something in the konfiguration.

Thank you maybe for an feedback.

Gruß Roman

Please Log in or Create an account to join the conversation.

Aw: Re: PDF Export ohne Kopfzeile 7 years 11 months ago #78751

  • mzungu's Avatar Topic Author
  • mzungu
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Ich glaube quickmode holt sich sein Export von woandershin her oder es greift anderst auf die Form zu. Keiner eine Idee ? Die PDF sieht nämlich nicht so toll aus.
Gruß Roman

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.046 seconds

July Sale!

Discounts for all of our extensions + support. Ending July 31st!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!