Quantcast
Channel: Read data from tt_address and render a table. Table remains empty - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Read data from tt_address and render a table. Table remains empty

$
0
0

i have a test enviroment with the intro-package, ods_osm and tt_address installed. on one page i want to show a table with marker data from tt_address (which is also used in the map). I am still struggling with typoscript, but this is what i have got so far:

Page ext Template:

lib.markerTable = FLUIDTEMPLATElib.markerTable {    templateName = MarkerDetailsTemplate    templateRootPaths {        10 = fileadmin/user_upload/    }    variables {               markerData.select {            pidInList = 85            selectFields = uid, name, address, www        }    }}

My fluidtemplate:

<table><thead><tr><th>Name</th><th>Address</th><th>Website</th></tr></thead><tbody><f:for each="{markerData}" as="marker"><tr><td>{marker.name}</td><td>{marker.address}</td><td><a href="{marker.www}" target="_blank">{marker.www}</a></td></tr></f:for></tbody></table>

To render the table i include this line into the Default.html:

<div class="marker-table-section"><f:cObject typoscriptObjectPath="lib.markerTable" /></div>

But in the Frontend i only see the table headers. Where i am going wrong?

Thanks!

Edit(TSOB entry):

[markerTable] = FLUIDTEMPLATE    [templateName] = MarkerDetailsTemplate[templateRootPaths][variables][markerData][select]    [pidInList] = 85    [selectFields] = uid, name, address, www

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>