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.

Formular ID

More
8 years 8 months ago #1953 by OrangeCocoon
Formular ID was created by OrangeCocoon
Hallo,

ich würde gernewissen mit welchem Code ich die ID des Formulares auslesen kann, damit ich andere Ausgaben für die Sprachdatei anlegen kann, da ich verscheiden Formulare habe.

Lieben Dank

More
8 years 8 months ago #1954 by Administrator AV
Replied by Administrator AV on topic Formular ID
Hallo,

normalerweise steht die Id des Formulars als Parameter mit dem Namen id im Request. Da kannst du sie dir mit dem ganz normalen Joomla! Code zum Auslesen von Request Parametern herholen.

Falls das nicht das ist was du suchst müsstest du schon etwas genauer erklären, was du eigentlich machen willst. Für mich gibt die Verbindung von Sprachdatei und Formularid ohne weiteren Kontext wenig Sinn. Welche Texte musst du denn formularspezifisch ändern, die in den Sprachdateien stehen?

Gruß,
Aicha

: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 :-).

More
8 years 8 months ago #1962 by OrangeCocoon
Replied by OrangeCocoon on topic Formular ID
Hallo Aicha,

ich muss "CHOOSE_A_VALUE" jeweils dreimal eine andere Ausgabe haben! Standart ist "Bitte wählen Sie einen Wert".

das würde ich auch gerne als Standard behalten - aber ich brauche jeweils für 2 Formulare eine andere Angabe bei einem muss "Bitte wählen Sie einen Kurs aus" und nun ja noch eins für alle Fälle... da ich nicht über URL Request gehen will, dachte ich ich kann es via ID machen - weiss aber nicht wie!

LG Kerstin

More
8 years 8 months ago - 8 years 8 months ago #1963 by Administrator AV
Replied by Administrator AV on topic Formular ID
Hallo Kerstin,

an der Stelle, an der das Control zusammengebaut und der String "CHOOSE_A_VALUE" eingesetzt wird, ist die Formularid nicht bekannt und du kannst sie dir nur über
Code:
$formid = JFactory::getApplication()->input->get('id', 0 'int');

holen und dann halt an den
Code:
JText::_('CHOOSE_A_VALUE'))
dranhängen.
Code:
JText::_('CHOOSE_A_VALUE').$formid)
evtl. auch conditional nur für bestimmte ids und dann die zuästzlchen Strings in den Sprachfiles anfügen.

Gruß,
Aicha

: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: 8 years 8 months ago by Administrator AV.

More
8 years 8 months ago #1964 by OrangeCocoon
Replied by OrangeCocoon on topic Formular ID
Hallo Aicha,

es geht noch nicht ganz!

Wenn ich
Code:
$formid = JFactory::getApplication()->input->get('id', 0 'int');

eingebe -ist die ganze Joomla Seite leer!

Nun habe ich:
Code:
$formid = 1;

eingegeben und
Code:
JText::_('CHOOSE_A_VALUE'.$formid));

Dann spuckt er zumindest das richtige aus der Sprachdatei aus - hast Du noch eine Idee?

More
8 years 8 months ago #1965 by OrangeCocoon
Replied by OrangeCocoon on topic Formular ID
...okay - soweit bin ich weiter mit:
Code:
$formid = JFactory::getApplication()->input->get('id', 0 , 'int');

Spuckt er jetzt die ID des Beitrags aus - ich will aber die ID des Fomulares haben!?

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum