jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: Mad_Hatter on 23.07.2018 12:10:16

Title: Custom Fields with E-Mails
Post by: Mad_Hatter on 23.07.2018 12:10:16
Hello!

I have a problem
with making JDownloads sending information from a custom field in the File Upload Form to my test-Mail Adress.

The problem in Detail:
I Created the custom dropdown field (Configuration, Additional Datafields) and added in a Title and some values. Then I made sure to display the field in the user access configuration, so that I can see it when uploading a file. So far so good, the upload part is working just fine, but when I check the E-Mail I get, the variable name I entered doesn't seem to be right. Here is how my E-Mail looks: ?Mitteilung über eine Dateieinsendung!

Einsender: testuser
E-Mail: a@b.c
IP-Adresse: 178.189.219.129

Dateiname: test1.jpg
Titel: test3
Beschreibung:
Datum und Zeit: 23.07.2018

{custom_title_1}: {custom_value_1}

Dies ist eine automatisch generierte E-Mail.?
And here is how it should look: ?Mitteilung über eine Dateieinsendung!

Einsender: testuser
E-Mail: a@b.c
IP-Adresse: 178.189.219.129

Dateiname: test1.jpg
Titel: test3
Beschreibung:
Datum und Zeit: 23.07.2018

Ausführung: Sport

Dies ist eine automatisch generierte E-Mail.?
. My E-Mail Layout in Configuration looks like this: Mitteilung über eine Dateieinsendung!<br />
<br />
Einsender: {name}<br />
E-Mail: {mail}<br />
IP-Adresse: {ip}<br /><br />
Dateiname: {file_name}<br />
Titel: {file_title}<br />
Beschreibung: {description}<br />
Datum und Zeit: {date}<br /><br />
{custom_title_1}: {custom_value_1}<br /><br />
Dies ist eine automatisch generierte E-Mail.


TLDR: Which variable name do I have to use for Custom Fields in E-Mails?
Title: Re: Custom Fields with E-Mails
Post by: ColinM on 24.07.2018 02:44:53
Hi
If you look at the email setup the placeholders that are available do not include {custom_title_1}or{custom_value_1} - or any of the custom fields.At the present time the only ones available in notification of a download are {file_list} {ip_address} {date_time} {user_name} {user_email} {user_group}.  The file list will give you the name of the file that has been downloaded, or if it is via a checkbox layout the list of files in the zip that jD created
For Upload notification the available  items are {name} {mail} {date} {ip} {file_title} {file_name} {description}.
Are you trying to find out which Category (directory) into which the Download has been assigned?

At present jD does not support the Joomla! Custom fields but that is being worked upon.Colin