[TYPO3-ttnews] tx_news - no entry for show latest

jaco graaff jaco at spacexplorer.co.za
Tue Jul 9 05:08:43 CEST 2013


Another issue

in my TEMLATES -> LIST file

I can test the "templateLayout"
------------------------------------------------------------------------------------------------------------------------------------------------
         <f:if condition="{settings.templateLayout} == 99">
                <f:then>
                    <div class="news-detail-view">
                        <f:for each="{news}" as="newsItem">
                            <f:render partial="Detail/DetailPartial" 
arguments="{newsItem: newsItem, settings:settings}" />
                        </f:for>
                </f:then>
                <f:else>
                    <div class="news-list-view">
                        <f:render partial="List/ListPartial" 
arguments="{news: news, settings:settings}"/>
                </f:else>
            </f:if>
            </div>
------------------------------------------------------------------------------------------------------------------------------------------------
and redirect to 2 diff partials - one for a detail layout and another for 
list layout

BUT

now the DETAIL article shows up in the LIST, ignoring the
"Exclude already displayed news"
setting

going back to
------------------------------------------------------------------------------------------------------------------------------------------------

           <div class="news-list-view">
               <f:render partial="List/ListPartial" arguments="{news: news, 
settings:settings}"/>
   </div>

------------------------------------------------------------------------------------------------------------------------------------------------
and let this render both LIST views (the fake list-DETAIL view and the 
list-LIST view)
works - but then - no template diff

- I am going to try and send the

condition="{settings.templateLayout} == 99"

to the partial and see if I can do something there











More information about the TYPO3-project-tt-news mailing list