[TYPO3-realty] Using the LAYOUT field for other purposes - no output in the single view (frontend)

markus acid97 at gmail.com
Thu Feb 14 16:21:20 CET 2013


Hi folks,

Problem Description:
im trying to use the field "layout" for other purposes (i know thats not the way it should be done) - but if i add the marker to the template tx_realty_pi1.tpl.htm in the single view section, no value is passed to the frontend. The layout field should be used as additional field for the price tag (and not in the singleviewtable) and should be placed in the frontend right after the buying price field.

What did i try:
i try to add the following code to the tpl file (inside the price div)

			<!-- ###FIELD_WRAPPER_LAYOUT### -->
			<h4>###LABEL_LAYOUT###</h4>
			<p>###LAYOUT###</p>
			<!-- ###FIELD_WRAPPER_LAYOUT### -->

Results:
this only outputs the Label name (where the marker LABEL_LAYOUT is changed with the label stored in the locallang).
the marker ###LAYOUT### is not replaced by the value. 

looks similar to this:
Output_label_layout_test: ###LAYOUT###

the layout field is normaly used in the singleviewtable, where the output in the frontend works like charm, but if i try the above things, it dont work :(

does anyone have a clue where to add the field ´layout´ so it is rendered in the single view? 
would it be better to just add an additional field? and if yes - can anyone quote here which files i have to alter to do so? (tca.php, ...)

thanks in advance,
markus


More information about the TYPO3-project-realty mailing list