[TYPO3-formidable] ifEmpty does not work on renderlet LSITER if renderlet CHOOSER is in use
Dieter Bunkerd
dieter.bunkerd at typo3-asia.com
Wed Mar 3 07:32:46 CET 2010
Hi there,
I ran into the problem, that the ifEmpty message is not displayed, when
a chooser is used in conjunction with rederlet:LISTER
Everything works perfectly, but if no records are found, no message is
displayed. If I comment out the chooser things and set perpage to a
static value, the message is there.
Any suggestions?
The code:
<renderlet:CHOOSER name="chooser" defaultWrap="false">
<data defaultvalue="10">
<items>
<item caption="10" value="10"/>
<item caption="20" value="20"/>
<item caption="30" value="30"/>
</items>
</data>
<wrap><![CDATA[<div class="topPager">
<div class="left">
<span
style="color:#02ADE1;font-weight:bold">{LLL:EXT:user_realexp/locallang_db.xml:travelstories_single_header_sortby}
</span>
<select id="sort">
<option>Most recent</option>
<option>Best rated</option>
<option>Most viewed</option>
<option>Featured first</option>
</select>
</div>
<div
class="right">{LLL:EXT:user_realexp/locallang_db.xml:travelstories_single_header_resultsperpage}
| </div></div]]></wrap>
<wrapselected><![CDATA[<span
class="selected">|</span>]]></wrapselected>
<wrapitem><![CDATA[<span>|</span>]]></wrapitem>
<separator><![CDATA[ | ]]></separator>
</renderlet:CHOOSER>
<renderlet:LISTER name="list" defaultWrap="false">
<ifEmpty
message="LLL:EXT:user_realexp/locallang_db.xml:travelstories_single_no_searchresults"
/>
<template
path="EXT:user_realexp/res/travelstories_single.html"
subpart="###lister###"
alternateRows="###ROW###" />
<pager>
<alwaysDisplay>false</alwaysDisplay>
<template
path="EXT:user_realexp/res/travelstories_single_pager.html"
subpart="###listpager###" />
<rows>
<perpage>
<userobj>
<php><![CDATA[
return $this->oDataHandler->_getThisFormData('chooser');
]]></php>
</userobj>
</perpage>
</rows>
<window>2</window>
<sort column="tx_contributions_travel.tstamp" direction="DESC" />
</pager>
<searchform use="my-search" />
<columns>
...
--
Dieter Bunkerd
More information about the TYPO3-project-formidable
mailing list