[TYPO3-german] Link erzeugen und href ausgeben
Hallo Leute, ich bin noch ganz frisch in TYPO3 und um reinzukommen schreibe ich gerade eine Terminplanextension ala doodle/foodle. Nun stehe ich vor dem Problem, dass nach der Erzeugung der Umfrage ein Link ausgegeben werden soll, den der Ersteller per Email etc an Teilnehmer verschicken kann, der zu der spezifischen Seite verlinkt. mfg und vielen Dank im vorraus :) ___ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
[TYPO3-german] Re: mehrere Objekte einer Klasse aus einem Formular speichern
Hallo nochmal :) Danke erstmal für deine Antworten. Das Problem habe ich jetzt über eine andere herangehensweise gelöst, indem ich einen Click-Handler genommen habe. Jedoch stehe ich weiterhin vor dem Problem, aus einer foreach-Schleife Formulardaten/Checkboxen zu speichern. Gibt es da eine Möglichkeit, die Daten an das Repository zu übergeben? mfg ___ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
Re: [TYPO3-german] mehrere Objekte einer Klasse aus einem Formular speichern
Das dazugehörige Template sieht jetzt so aus Termin wählen {survey.title} {appiontments.appiontmentdate} und der HTML-Code dazu 2016-10-20 2016-11-15 2016-11-30 Ich frage mich auch, warum im HTML-Code "tx_survey_surveylisting" im name automatisch gesetzt wird und ich deshalb bei $_POST oder $arguments = $this->request->getArguments(); keine Argumente bekomme. Habe bisher ausprobiert $arguments = $this->request->getArguments(); $timeofdays = $arguments['tx_survey_surveylisting']['timeofdays']; oder $arguments = $this->request->getArguments(); $timeofdays = $arguments['timeofdays']; die foreach schleife foreach ($timeofdays['appiontmentId'] as $appiontment) ist dann leider leer ___ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
Re: [TYPO3-german] mehrere Objekte einer Klasse aus einem Formular speichern
Ich habe jetzt noch etwas rumprobiert, aber ich bekomme Werte aus dem Formular nicht an den Controller übergeben. Weder mit $_POST["tx_survey_surveylisting"] noch mit $argumente = $this->request->getArguments();. Das Array ist immer leer. Aktueller Controller: /** * @param \Schmidtch\Survey\Domain\Model\Survey $survey * @param \Schmidtch\Survey\Domain\Model\Appiontment $appiontment * @param \Schmidtch\Survey\Domain\Model\TimeOfDay $timeofday */ public function addAction( \Schmidtch\Survey\Domain\Model\Survey $survey) { $wertArray = $_POST["tx_survey_surveylisting"]; $timeofdays = $wertArray["timeofdays"]; foreach ($timeofdays["appiontmentId"] as $key => $appiontment) { $this->timeofdayRepository->add(new \Schmidtch\Survey\Domain\Model\TimeOfDay($appiontment,$timeofdays['timevalue1'][$key])); } $persistenceManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager'); $persistenceManager->persistAll(); $this->redirect('show', 'Survey', NULL, array('survey' => $survey)); } erzeugter HTML-Code 2016-10-20 2016-11-15 2016-11-30 ___ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
[TYPO3-german] mehrere Objekte einer Klasse aus einem Formular speichern
Hallo Ich bin ziemlich neu bei typo3 und stehe gerade total auf dem Schlauch. Ich möchte mehrere Einträge aus einem Formular aus einer foreach-Schleife speichern. [code] {headline} {survey.title} {appiontments.appiontmentdate} [/code] Mein aktueller Controller speichert jetzt natürlich nur den letzten Wert. Ich komme aber einfach nicht drauf wie ich jetzt weiter verfahre. [code] /** * @param \Schmidtch\Survey\Domain\Model\Survey $survey * @param \Schmidtch\Survey\Domain\Model\Appiontment $appiontment * @param \Schmidtch\Survey\Domain\Model\Timeofday $timeofday */ public function addAction( \Schmidtch\Survey\Domain\Model\Survey $survey, \Schmidtch\Survey\Domain\Model\Appiontment $appiontment, \Schmidtch\Survey\Domain\Model\Timeofday $timeofday) { $appiontment->addTimeofday($timeofday); $this->objectManager->get('Schmidtch\\Survey\\Domain\\Repository\\AppiontmentRepository')->update($appiontment); $this->redirect('show','Survey',Null,array('survey'=>$survey)); } [/code] ___ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german