Configuration

Introduction

There are configurations for listView and singleView and more general parts like templateFile or pidList. In all fields related stdWraps fields from tx_sfbooks_books are available for field and data like uid.

plugin.tx_sfbooks

Settings for all plugins

Settings and view in both plugin configurations

.. sfbooks-Configuration:: templateRootPaths
Data type

array of file paths with stdwrap

Default

none

Used to define several paths for templates, which will be tried in reversed order (the paths are searched from bottom to top). The first folder where the desired layout is found, is used. If the array keys are numeric, they are first sorted and then tried in reversed order.

Example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
plugin.tx_sfbooks {
   view {
      templateRootPaths {
         10 = EXT:sitedesign/Resources/Private/Templates
         20 = EXT:sitemodification/Resources/Private/Templates
      }
   }
}
Copied!
.. sfbooks-Configuration:: pagination
Data type

string

Default

none

Allows to configure what pagination class should be used. If no class name is given or the given class does not implement the PaginationInterface, the default SimplePagination gets used.

Example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
plugin.tx_sfbooks {
   settings {
      pagination = TYPO3\CMS\Core\Pagination\SlidingWindowPagination
   }
}
Copied!
.. sfbooks-Configuration:: itemsPerPage
Data type

integer

Default

10

Amount of list entries per page.

Example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
plugin.tx_sfbooks {
   settings {
      itemsPerPage = 10
   }
}
Copied!
.. sfbooks-Configuration:: numberOfLinks
Data type

integer

Default

5

If a SlidingWindowPagination or compatible pagination is used, this defines the amount of pages in the pagination list.

Example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
plugin.tx_sfbooks {
   settings {
      numberOfLinks = 3
   }
}
Copied!
.. sfbooks-Configuration:: groupAuthors
Data type

boolean

Default

1

Choose weather to group the author list by first letter or not.

Example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
plugin.tx_sfbooks {
   settings {
      groupAuthors = 1
   }
}
Copied!
.. sfbooks-Configuration:: groupSeries
Data type

boolean

Default

1

Choose weather to group the series list by first letter or not.

Example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
plugin.tx_sfbooks {
   settings {
      groupSeries = 1
   }
}
Copied!
.. sfbooks-Configuration:: orderings
Data type

array

Default

1

Combinations of fields with order directions

Example:

EXT:site_package/Configuration/TypoScript/setup.typoscript
plugin.tx_sfbooks {
   settings {
      orderings {
        title = ASC
      }
   }
}
Copied!