[TYPO3-dev] Set PID of IRRE in tt_content

Marc Scherer mail at loewenstall.de
Thu Jun 19 17:34:39 CEST 2014


Hi,

I have an Extension providing two custom content elements, added to tt_content (everything works fine). The requirement is to include other content elements (text, textpic etc.) - also works fine. But the problem is the PID of each child element, they're all stored on the same page. Is there a way to set the PID of each child element? Btw. I'm using flexform to attach the inline contents.

<settings.contentBelow>
				<TCEforms>
					<label>LLL:EXT:...content Below</label>
					<config>
						<type>inline</type>
						<foreign_table>tt_content</foreign_table>
						<size>10</size>
						<autoSizeMax>30</autoSizeMax>
						<maxitems>99</maxitems>
						<multiple>0</multiple>
						<wizards>
							<_PADDING>1</_PADDING>
							<_VERTICAL>1</_VERTICAL>
							<edit>
								<type>popup</type>
								<title>Edit</title>
								<script>wizard_edit.php</script>
								<popup_onlyOpenIfSelected>1</popup_onlyOpenIfSelected>
								<JSopenParams>height=350,width=580,status=0,menubar=0,scrollbars=1</JSopenParams>
							</edit>
							<add>
								<type>script</type>
								<title>Create new</title>
								<icon>add.gif</icon>
								<params>
									<table>tt_content</table>
									<pid>100</pid>
									<setValue>prepend</setValue>
								</params>
								<script>wizard_add.php</script>
							</add>
						</wizards>
					</config>
				</TCEforms>
			</settings.contentBelow>

I've tried to set the PID add > params ...like the TCA definition does, but that doesn't work. Thanks in advance for any hint or help!



More information about the TYPO3-dev mailing list