Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

PDF-Template / Es wird ID Nr. anstatt Ersteller Name angezeigt

More
10 months 15 hours ago - 10 months 14 hours ago #9583 by sestec
Hallo Ingmar

so ich habe es hinbekommen und zwar wie folgt:
Ich brauche nur den Usernamen

so wie du beschrieben, aber mit den zwei klammern
  • Reiter “SQL-Statements”, “Referenzname” = “user-data”
  • Reiter “SQL-Statements”, “Prozesstyp” = “Free”
  • Reiter “SQL-Statements”, “SQL-Statement” = “select name, username, email from #__users where id = '${item:created_by}';”
 

und im  PDF-Template habe ich folgendes eingegeben:
<p><strong>${created}  </strong></p>
<p id="user-data" class="sql"><strong>Mitglied ${user-data:username}</strong> ${unterschrift}</p>


 

habe nochmals ohne klammern getestet, geht auch 
ich weiss zwar nicht ob ich das richtig gemacht habe, aber es funktioniert und ich habe was ich möchte 

Danke Dir für Deine Hilfe

Liebe Grüsse und ein schönes Wochenende
Serkan




 
Last edit: 10 months 14 hours ago by sestec.

More
9 months 3 weeks ago - 9 months 3 weeks ago #9586 by Administrator IV
Hallo Serkan,

das Feld 'id' der Joomla Tabelle 'users' ist vom Typ ein Integer, also Zahl.

Fall 1 - Mit diesem Ausdruck vergleichst du das Feld 'id' mit einer Zahl:
Code:
id = 345


Fall 2 - Mit diesem Ausdruck vergleichst du das Feld 'id' mit einem String (ein Text).
In MySQL stehen Texte in einfachem Hochkomma.
Code:
id = '345'


In Fall 2 konvertiert MySQL den Text '345' automatisch und sinngemäß passend in die Zahl 345, bevor es mit dem Feld 'id' vergleicht.

In beiden Fällen funktioniert das SQL-Statement.

Es freut mich, dass das was du haben möchtest, nun funktioniert.
Außerdem ist dieses Verfahren beliebig erweiterbar.

Liebe Grüße, Ingmar

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
Last edit: 9 months 3 weeks ago by Administrator IV.
The following user(s) said Thank You: sestec

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum