derhansen / sf_event_mgt

An event management and registration extension for TYPO3 CMS based on ExtBase and Fluid.
GNU General Public License v2.0
57 stars 54 forks source link

Different Layouts not working #301

Closed angeloprevitali closed 8 years ago

angeloprevitali commented 8 years ago

sf_event_mgt Version 1.4.0 TYPO3 CMS 6.2.19 PHP 5.6

By appling the different Templates for list view nothing happens as described in manual on page https://docs.typo3.org/typo3cms/extensions/sf_event_mgt/Templates/Layouts/Index.html

It always takes the default layout in any case. You cannot switch layout as in the tx_news.

Page TS setup

--------------

tx_sfeventmgt.templateLayouts { 1 = Layout one 2 = Layout two }

<f:if condition="{settings.templateLayout} == 1">
  <f:render partial="List/LayoutOne" arguments="{eventItem: event, settings:settings}"/>
</f:if>

<f:if condition="{settings.templateLayout} == 2">
  <f:render partial="List/LayoutTwo" arguments="{eventItem: event, settings:settings}"/>
</f:if>

is this a bug?

Best regards, Angelo

derhansen commented 8 years ago

I tested the templateLayouts setting in my TYPO3 6.2 test environment but could'nt reproduce the problem.

As soon as I select a template in the plugin, the List-View will contains settings.templateLayout with the selected ID.

You could try to use <f:debug>{settings}</f:debug> in your list template to see if the variable is available

derhansen commented 8 years ago

No feedback for 30+ days. Closing issue