[TYPO3-content-rendering] [TYPO3 6.0.6] TypoScript for own content element
Patrick Broens
patrick.broens at typo3.org
Wed Jun 12 15:21:09 CEST 2013
Hi Simon,
Just to be sure:
tt_content.image.20 is using the field 'image'. Are you using the same
field? Otherwise you have to change it.
Furthermore the images are put in the imgPath 'uploads/pics'. Are your
images moved to that folder as well?
Patrick
On 5-6-13 17:17 , Simon wrote:
> I defined a new content element type named "imgTest" via extTables.php.
>
> For the frontend rendering I am using the following TypoScript.
>
> tt_content.imgTest = COA tt_content.imgTest {
> wrap = <div class="imgTest">|</div>
>
> #output a image that was added to the content element
> 5 < tt_content.image.20
>
> 10 = TEXT
> 10.field = header
> 10.wrap = <h2>|</h2>
>
> }
>
> Everything is rendered as expected except this does not display the
> image I added to a test content element.
> I also tried to get the image with IMAGE and IMG_RESOURCE, which I would
> prefer, but also no success getting the image from the content element.
>
> Any suggestions?
--
Patrick Broens
TYPO3 Core Team member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-project-content-rendering
mailing list