[TYPO3-mvc] Call extbase action from typoscript twice with different parameters on the same page?

Sy Moen josiah.moen at gmail.com
Wed May 4 01:19:50 CEST 2011


Can I call a view from typoscript twice with different parameters on the
same page?

The following works, but both widgets show content from the headlinesWidget

plugin.tx_wttwitter.widgets {
  headlinesWidget = USER
  headlinesWidget {
    userFunc = tx_extbase_core_bootstrap->run
    pluginName = List
    extensionName = WtTwitter
    controller = Twitter
    action = list

    switchableControllerActions {
        Twitter {
            1 = list
        }
    }

    settings =< plugin.tx_wttwitter.settings
    persistence =< plugin.tx_wttwitter.persistence
    view =< plugin.tx_wttwitter.view
  }
  personalWidget < plugin.tx_wttwitter.widgets.headlinesWidget
  personalWidget.settings.setup {
    mode = showOwn
    showRetweet = 0
  }
}

lib.field_twitter < plugin.tx_wttwitter.widgets.personalWidget
lib.field_headlines < plugin.tx_wttwitter.widgets.headlinesWidget


More information about the TYPO3-project-typo3v4mvc mailing list