0
votes

I have some FCEs which are working fine. Now I want to display the data for another render type and I have to change from div to ul. Is there a way to extract the data fields with Typoscript? Currently the FCEs are included as Page-Content Elements in another template. The data processing contains the following TS Code

10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->

@ggzone: I tried this:

10 = COA
10 {
  10 = TEXT
  10 {
    current = 1
    typolink.parameter.field = field_link_text
    required = 1
    wrap = <h3>|</h3>
  }
}

But I only get <h3>39,40,57</h3>. That are the IDs from the FCEs. How do I get the field value?

1

1 Answers

1
votes

ofcourse... this is an example how to render a FCE... u can also use a Typoscript select in there from tt_content. there are many snippets outside. for example just replace your snippet with this one just to see if it works. dont forget to edit the "field_yourfieldname" to your field_xxxx

10 = COA
10 {
  10 = TEXT
  10 {
    current = 1
    typolink.parameter.field = field_yourfieldname
    required = 1
    wrap = <h3>|</h3>
  }
}

typolink is not the only where you can use .field as typolinks uses the ID to link to a page (&id=123) you will get it. you can also use value.field or stdWrap.field.

heres another example which should work:

10 = HTML    
10.value.field = field_yourfieldname

take a look aroun in google.. its not easy to find some snippets but also not that hard. as i use this not often i also need to take a look around everytime