Note that there are some explanatory texts on larger screens.

plurals
  1. POThe detailed view of the last item of a list build by TypoScript is always blank
    primarykey
    data
    text
    <p>Here's the TypoScript code.</p> <pre><code>lib.membersList = CONTENT lib.membersList{ table = tt_address select{ pidInList = {$membersStorageFolder} orderBy = zip, last_name } wrap = &lt;div class="membersList"&gt;|&lt;/div&gt; renderObj = COA renderObj{ 10 = FLUIDTEMPLATE 10{ file = fileadmin/templates/ext/memberslist/templates/membersList.html variables{ portrait = IMAGE portrait{ file.import = uploads/pics/ file.import { field = image listNum = 0 } file.height = 105 file.width = 105c stdWrap.typolink{ parameter = {$membersPageId} additionalParams.dataWrap = &amp;ts_addresslist[showUid]={field:uid} #returnLast = url # The cache hash is needed to display the right content, since we are not running as USER_INT useCacheHash = 1 } } lastName = TEXT lastName.field = last_name lastName.typolink{ parameter.data = TSFE:id additionalParams.dataWrap = &amp;ts_addresslist[showUid]={field:uid} # The cache hash is needed to display the right content, since we are not running as USER_INT useCacheHash = 1 } firstName = TEXT firstName.field = first_name firstName.typolink{ parameter.data = TSFE:id additionalParams.dataWrap = &amp;ts_addresslist[showUid]={field:uid} # The cache hash is needed to display the right content, since we are not running as USER_INT useCacheHash = 1 } title = TEXT title.field = title organisation = TEXT organisation.field = company country = TEXT country.field = country city = TEXT city.field = city } } } stdWrap.override.cObject = CONTENT stdWrap.override.cObject{ table = tt_address select { andWhere.data = GP:ts_addresslist|showUid # Make sure there is no SQL injection! andWhere.intval = 1 andWhere.wrap = uid=| orderBy = last_name ASC pidInList = {$membersStorageFolder} } wrap = &lt;div class="membersDetail"&gt;|&lt;/div&gt; renderObj = FLUIDTEMPLATE renderObj{ file = fileadmin/templates/ext/memberslist/templates/membersDetail.html variables{ portrait = IMAGE portrait{ file.import = uploads/pics/ file.import { field = image listNum = 0 } file.height = 105 file.width = 105c } lastName = TEXT lastName.field = last_name firstName = TEXT firstName.field = first_name title = TEXT title.field = title organisation = TEXT organisation.field = company country = TEXT country.field = country city = TEXT city.field = city detail = TEXT detail.field = description } } renderObj.stdWrap.append = TEXT renderObj.stdWrap.append{ value = &lt;&lt; Back to list typolink.parameter = {$membersPageId} } } stdWrap.override.if { isTrue.data = GP:ts_addresslist|showUid isTrue.intval = 1 } } </code></pre> <p>Everything is working fine. The list is displayed as it should. The detailed view also except for the last item. When I click on it, the detailed view displays a blank page. No information, as if the query fetched nothing.</p> <p>Here are the templates, very simple though. <strong>membersList.html</strong></p> <pre><code>&lt;section&gt; {portrait -&gt; f:format.raw()} &lt;div class="memberDetail"&gt; &lt;h1&gt;{lastName -&gt; f:format.raw()} {firstName -&gt; f:format.raw()}&lt;/h1&gt; &lt;h2&gt;{title} - {organisation}&lt;/h2&gt; &lt;h3&gt;{country} - {city}&lt;/h3&gt; &lt;/div&gt; &lt;/section&gt; </code></pre> <p><strong>membersDetail.html</strong></p> <pre><code>&lt;section&gt; {portrait -&gt; f:format.raw()} &lt;div class="memberDetail"&gt; &lt;h1&gt;{lastName} {firstName}&lt;/h1&gt; &lt;h2&gt;{title} - {organisation}&lt;/h2&gt; &lt;h3&gt;{country} - {city}&lt;/h3&gt; &lt;/div&gt; &lt;div class="bio"&gt; {detail} &lt;/div&gt; &lt;/section&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload