[TYPO3-german] Via fluid auf Plugin-Einstellungen zugreifen

Daniel Koch danielkoch.de at gmail.com
Wed Jan 2 17:27:04 CET 2013


Habe es jetzt wie folgt gelöst (ich glaube nicht wirklich elegant, aber es funktioniert):
In der localconf.php habe ich die Extension-Konfiguration erweitert:

$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['templateLayouts'] = array(
    0 => array(
        0 => 'List',
        1 => 'list'
    ),
    1 => array(
        0 => 'Detail',
        1 => 'detail'
    ),
    2 => array(
        0 => 'Last',
        1 => 'last'
    ),
    3 => array(
        0 => 'Date',
        1 => 'date'
    ),
    4 => array(
        0 => 'Category',
        1 => 'category'
    ),
);

Hier kann ich im Plugin-Setup dann meine Auswahl treffen. Den jeweiligen Wert kann ich dann z.B. so im fluid-Template abfragen:
<f:if condition="{0:settings.templateLayout} == {0:'short'}">

Viele Grüße
Daniel
Am 31.12.2012 um 08:03 schrieb Daniel Koch:

> Hi zusammen,
> 
> ich möchte gerne innerhalb meiner fluid View-Templates in Abhängigkeit der Plugin-Einstellungen unterschiedliches Markup generieren. Konkret kann ich in bei dem Plugin "news" (https://typo3.org/extensions/repository/view/news) unterschiedliche "Actions" wählen:
> - List view
> - Detail view
> - Date menu
> - ...
> 
> Wie kann ich nun via fluid auf diese Plugin-Konfiguration zugreifen?
> 
> Beispiele:
> plugin.tx_news.settings.switchableControllerActions.News.1 = list
> plugin.tx_news.settings.switchableControllerActions.News.1 = detail
> 
> Viele Grüße
> Daniel
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list