ok - if you want the name of the artikel
in the mail subject,
to identify your contact forms you need a new .php file
in your frontend render.
german:
ich hatte das problem, dass ich mehrere "CP artikel" hatte
in denen sich alle ein kontaktformular
befindet. (für kursanmeldung) nun brauche ich, nachdem sich ein kunde über das kontaktforumlar
angemeldet hat, die info zu diesem kurs ohne, dass dies der kunde extra eintragen muss. und so gehts
1.
make
in your contact form a "hidden field" with name "mailsubject".

type
in the field "Value":
and save this.
2.
choose
in the top ob the form under "subject" the "Form: mailsubject"

3.
make a file at your editor with the following content:
Code: Select all
<?php
$content['all'] = str_replace('[%GLOBAL_FORM_SUBJECT%]', trim('your own text: ' . html_specialchars($content['article_title'])), $content['all']);
?>
save file with the name "email_subject.php" under template/inc_script/frontend_render
or simply download the finished file
HERE (email_subject.zip)
4.
now the article
title is seen
in the subject from your
email - now, you can ident the different contact forms ...
much fun ...
(thx to O.G.)