0

I have a nearly unconfigured flexform (only set the Switchable Controller Action to "list") which I wanted to configure via TypoScript, e.g. as such:

plugin.tx_news {
    settings {
        pluginType = news-list
        limit = 999
        orderBy = datetime
        orderDirection = desc
        startingpoint = {$pidNewsStorage}
        detailPid = {$pidNewsDetail}
        archiveRestriction = active
        categories = 24
        categoryConjunction = and
    }
}

The TS is included in the page's setup, and the properties show up correctly in the TSOB.

Strangely, not all settings will work (the custom setting pluginType for use in fluid works, while detailPid doesn't). By "work", I mean override the empty settings in the flexform.

Some default settings I have set on the root page DO apply.

Where could I look?

Urs
  • 4,984
  • 7
  • 54
  • 116
  • 1
    For first part check if `plugin.tx_news.settings. detailPid=123` shows anything maybe you have not declared `{$pidNewsDetail}`? – biesior May 26 '15 at 17:45
  • Ah no :-) Also some constantless stuff like `archiveRestriction = active` or the categories doesn't kick in – Urs May 26 '15 at 19:59

1 Answers1

1

You can also add here the fields which you want to override from typoscript

plugin.tx_news.settings.overrideFlexformSettingsIfEmpty = cropMaxCharacters,dateField,timeRestriction,orderBy,orderDirection,backPid,listPid,startingpoint,recursive,list.paginate.itemsPerPage,list.paginate.templatePath,templateLayout
Bharat Parmar
  • 1,842
  • 2
  • 18
  • 22