TYPO3-Testaccount
Testen Sie die aktuellste TYPO3-Version kostenlos und unverbindlich für einen Monat!

Jetzt testen!

Schulungen

Flexform und required


Autor Nachricht
Verfasst am: 28. 08. 2009 [07:54]
Skyhead
Themenersteller
Dabei seit: 11.02.2008
Beiträge: 32
Hallo Leute,

kann mir vielleicht jemand helfen, ich hab mir eine Extension geschrieben, die auf Flexform basiert. In dieser Flexform gibt es 2 Sheets, wobei alle Felder im 1. Sheet Pflichtfelder sein sollen und alle Felder im 2. Sheet keine Pflichtfelder.
Irgendwie funktioniert das nicht so ganz. Er übernimmt das required nur für das Feld Ort. Also für das letzte Feld aus dem 1. Sheet.

Hier meine Flexform:
PHP
<t3datastructure>
	<meta />
	<langdisable>1</langdisable>
	<!--  <langchildren>1</langchildren>!-->
	</meta>
<sheets>
	<sdef>
	<root>
		<tceforms>
			<sheettitle>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.php<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.sheet_pflicht</sheettitle>
		</tceforms>
		<type>array</type>
		<el>
  		<vorname>
	 		<tceforms>
	   		<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.vorname</label>
			<config>
				<type>input</type>
				<size>30</size>
				<eval>required</eval>
			</config>
			</tceforms>
		</vorname>
		<nachname>
			<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.nachname</label>
			<config>
				<type>input</type>
				<size>30</size>
				<eval>required</eval>
			</config>
			</tceforms>
		</nachname>
		<strasse>
			<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.strasse</label>
			<config>
				<type>input</type>
				<size>30</size>
				<eval>required</eval>
			</config>
			</tceforms>
		</strasse>
		<hausnummer>
			<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.hausnummer</label>
			<config>
				<type>input</type>
				<size>30</size>
				<eval>required</eval>
			</config>
			</tceforms>
		</hausnummer>
		<postleitzahl>
			<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.postleitzahl</label>
			<config>
				<type>input</type>
				<size>30</size>
				<eval>required</eval>
			</config>
			</tceforms>
		</postleitzahl>
		<ort>
			<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.ort</label>
			<config>
				<type>input</type>
				<size>30</size>
				<eval>required</eval>
			</config>
			</tceforms>
		</ort>
		</el>
	</root>
	</sdef>
	<s_misc>
	<root>
		<tceforms>
			<sheettitle>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.sheet_optinal</sheettitle>
		</tceforms>
		<type>array</type>
		<el>
		<organisation>
			<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.organisation</label>
			<config>
				<type>input</type>
				<size>30</size>
			</config>
		</tceforms>
		</organisation>
		<telefon>
		<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.telefon</label>
			<config>
				<type>input</type>
				<size>30</size>
			</config>
		</tceforms>
		</telefon>
		<fax>
		<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.fax</label>
			<config>
				<type>input</type>
				<size>30</size>
			</config>
		</tceforms>
		</fax>
		<email>
			<tceforms>
			<label>LLL:EXT<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />s_kontaktbox/locallang_os.xml<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />skontakt.pi_flexform.email</label>
			<config>
				<type>input</type>
				<size>30</size>
			</config>
		</tceforms>
		</email>
		</el>
	</root>
	</s_misc>
</sheets>
</t3datastructure>


Würde mich freuen, wenn mir jemand weiter helfen kann.

Mfg Skyhead

[Dieser Beitrag wurde 1mal bearbeitet, zuletzt am 28.08.2009 um 07:55.]
Profil
Verfasst am: 29. 08. 2009 [18:48]
Skyhead
Themenersteller
Dabei seit: 11.02.2008
Beiträge: 32
hat denn niemand eine idee, was ich da vielleicht falsch gemacht haben könnte?

MFG Olli
Profil
Verfasst am: 14. 09. 2009 [14:10]
froemken
Dabei seit: 30.01.2007
Beiträge: 740
Du hast nichts falsch gemacht, nur werden die Flexforms etwas anders gehandhabt. So klappt z.B. type=inline nicht 100%ig in Flexform. Wenn ein Feld von 20 auf einem Sheet das Flag "required" trägt, dann erschein das kleine gelbe Ausrufezeichen in der Mitte aller Felder...du kannst dann also Stöckchen ziehen, welches Feld jetzt required ist. Ich persönlich schreibe "required" schon mit in den Titel rein.
Ein ähnliches Problem wird das bei Dir sein. Aber ob und wann eine Lösung kommt? Keine Ahnung.

froemken

All meine TYPO3-Problemlösungen und Hilfestellungen landen hier:
http://typo3.sfroemken.de
ProfilWWW
Verfasst am: 14. 09. 2009 [14:17]
froemken
Dabei seit: 30.01.2007
Beiträge: 740
Seh grad...da gibbet schon einen BUG-Eintrag:
http://bugs.typo3.org/view.php?id=7832
Auch ein Patch ist verfügbar, aber dort steht, dass das erst der "Anfang" der Lösung ist. Da der Patch noch für die 4.2.0-beta3 war würd mich mal wahnsinnig interessieren, ob diese Fehler eigentlich behoben sind, oder ob er in 4.3 behoben ist.

froemken

All meine TYPO3-Problemlösungen und Hilfestellungen landen hier:
http://typo3.sfroemken.de
ProfilWWW
Verfasst am: 18. 09. 2009 [11:05]
Skyhead
Themenersteller
Dabei seit: 11.02.2008
Beiträge: 32
mich würde auch brennend interessieren, was man in der Version 4.2.6 oder 4.2.8 machen muss, damit das Problem behoben wird.

Mfg olli
Profil