File_upload: value --> only file name without server path

  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2

rd created the topic: File_upload: value --> only file name without server path

Hello,
is there a way to configure the Admin Mail that the
File_upload: Value
is only the File Name without the entire Server Path?


right know it is:
File Name: /var/www/virtual/domainname.de/form_domainname_de/htdocs/media/breezingforms/uploads/filename.jpg

we would like it this way:
File Name: filename.jpg

I have seen a post where there was the hint to use a customized mail_template. But than I can't use the simple and easy to use Admin Email Cuszomization Area in Breezing forms.

Thank you very much for your help.
Best Regards
Rolf
#233918
  • Posts: 2461
  • Karma: 86
  • Thank you received: 333

mihaela replied the topic: File_upload: value --> only file name without server path

Hello,

I assume that you are referring to this topic crosstec.org/en/forums/1-forums/125234-u...min-mail.html#231358 .

Unfortunately, that is the only way to achieve what you want since {filedname:value} tag automatically inserts the whole path. To keep just the file name coding would be needed and coding isn't possible in Admin Email Cuszomization Area in Breezing forms.

Therefore, you can either keep the whole path or customize the email template.
There you can create the same custom email look as with Admin Email Customization Area, but it requires more coding.

Let me know whether this answers your question.

Regards,

Mihaela
#233967
  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2

rd replied the topic: File_upload: value --> only file name without server path

Hello Mihaela,

thank you for your answer.
I am working on the mail template but I am stucked.

This is a part of the Code from my Admin Email Customization Area:
<p><strong>Fenster Bestell- / Anfrageformular</strong></p>
<p>Bearbeiter: <a>{Bearbeiter:value}</a>, Aufmaßdatum<a>{Aufmassdatum:value}</a></p>
<hr />
<p><a>Bitte um: {Fenster1_Auftrag_oder_Angebot:value}<br />Gesamt Anzahl Fenster:&nbsp;</a><a>{GesamtanzahlFenster:value}</a></p>
<hr />
<p><strong>Kommission:</strong></p>
<p><a></a><a>{Nachname:value}</a><a>,</a><a>{Vorname:value}</a><br /><a>{strasse:value}</a><br /><a>{plz_ort:label}</a></p>
<p><a>Telefon: {Telefon:value}<br /></a>Email:&nbsp;<a>{email_adresse:value}</a></p>
<hr />

And this is the same part from the HTML Mail template (basically I took the element values and put them into the table cells):
<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
?>

<?php if ($RECORD_ID != ''): ?>
<?=$PROCESS_RECORDSAVEDID?> <?=$RECORD_ID ?><?=$NL ?><br />
<?php endif; ?>

<style type="text/css">
TBODY {FONT-FAMILY: Calibri,Arial,Helvetica,sans-serif; COLOR: #88ACE0;}
A {COLOR: #C8100C; TEXT-DECORATION: none}
A.href {COLOR: #C8100C; TEXT-DECORATION: none}
A:link {COLOR: #C8100C; TEXT-DECORATION: none}
A:hover {COLOR: #C8100C; TEXT-DECORATION: underline}
H2 {MARGIN:0px 0pt; FONT-SIZE: 20px; COLOR: #285698}
H3 {MARGIN:0px 0pt; FONT-SIZE: 14px; COLOR: #285698}
td {text-align: center}
</style>

<p>&nbsp;</p>

<div align="center"><center>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center"><h1><?php echo $TITLE ?></h1></td>
</tr>
</table>

<p>&nbsp;</p>

<table cellspacing="0" cellpadding="0" align="center" border="1">

<tr>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Bearbeiter:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{Bearbeiter:value}</td>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Aufmaßdatum:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{Aufmassdatum:value}</td>
</tr>
<!-- Spacer Row -->
<tr>
<td colspan="4" style="border-top:1px solid #e0e8ef" align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Bitte um:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{Fenster1_Auftrag_oder_Angebot:value}</td>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Gesamt Anzahl Fenster:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{GesamtanzahlFenster:value}</td>
</tr>
<!-- Spacer Row -->
<tr>
<td colspan="4" style="border-top:1px solid #e0e8ef" align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Ansprache:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{Ansprache:value}</td>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Titel:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{Titel:value}</td>
</tr><tr>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Nachname:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{Nachname:value}</td>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Vorname:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{Vorname:value}</td>
</tr>
<tr>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Straße:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{strasse:value}</td>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>PLZ / Ort:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{plz_ort:value}</td>
</tr>
<tr>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>Telefon:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{Telefon:value}</td>
<td style="border: 0px; text-align: left; padding:10px 20px 10px 0px;" valign="top" width="25%"><h3>E-Mail:</h3></td>
<td style="border: 0px; text-align: left; padding:10px 0px 10px 0px;" valign="top">{email_adresse:value}</td>
</tr>
</table>
</center></div>

And this is the Email I received. (please see attachment --> )
I guess I am missing something. May I ask you again for help?
Thank you very much.
Regards Rolf
#234059
Attachments:
  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2

rd replied the topic: File_upload: value --> only file name without server path

I get it working ;-)
found out what was wrong:

At the beginning of the file I addded:
<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
$field = array();
foreach ($MAILDATA as $DATA) {
[b]$title[$DATA[_FF_DATA_NAME]] = $DATA[_FF_DATA_TITLE];
$value[$DATA[_FF_DATA_NAME]] = $DATA[_FF_DATA_VALUE];[/b]
}
?>

And to address the element values I used:
<?php echo $value["Bearbeiter"]?>
<?php echo $value["Aufmassdatum"]?>
instead of
{Bearbeiter:value}{Aufmassdatum:value}

Regards
Rolf
#234064
  • Posts: 2461
  • Karma: 86
  • Thank you received: 333

mihaela replied the topic: File_upload: value --> only file name without server path

Hello,

Great! I'm glad that you found out what was wrong and got it working. :)

Regards,

Mihaela
#234065
  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2

rd replied the topic: File_upload: value --> only file name without server path

Hello Mihaela,

we just made a pro subscription -- as a big "thank you" for your pro support ;-)
My question: is it possible to put all our topics into the pro section?

Regards
Rolf
#234066
Moderators: ForumSupporttomeperica
Time to create page: 0.198 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here