Administrator Manual¶
Hint
Please read the documentation of the TYPO3 PersistedPatternMapper for details.
Properties¶
type¶
Property
type
Data type
string
Description
The aspect type is CcPersistedPatternMapper.
Default
N/A
tableName¶
Property
tableName
Data type
string
Description
The database table.
Default
N/A
routeFieldResult¶
Property
routeFieldResult
Data type
string
Description
Table field(s) to use for path segment alias.
Default
N/A
routeFieldHandles¶
Property
routeFieldHandles
Data type
string
Description
Comma separated list to convert the field data. Possible values are: asciiTranslit, toLowerCase, specialCharsRemove, trim, filter, md5
Default
N/A
filter¶
Property
filter
Data type
string
Description
Regular expression to filter the path segment. This can be used to limit the length, see the example below.
Default
/(.*)/
specialCharsRemoveSearch¶
Property
specialCharsRemoveSearch
Data type
string
Description
Regular expression to search the path segment.
Default
/[^a-zA-Z0-9_]+/
specialCharsRemoveReplace¶
Property
specialCharsRemoveReplace
Data type
string
Description
Replacement string of search.
Default
-
Example¶
routeEnhancers:
CcExamplePlugin:
type: Extbase
extension: CcExample
plugin: Fe
routes:
- { routePath: '{title}',_controller: 'View::show',_arguments: {'title': 'item'} }
defaultController: 'View::show'
aspects:
title:
type: CcPersistedPatternMapper
tableName: 'tx_ccexample_item'
routeFieldResult: '{title}-{location}'
routeFieldHandles: 'asciiTranslit,toLowerCase,specialCharsRemove,trim,filter,md5'
filter: '/^(.{0,40})/'
# specialCharsRemoveSearch: '/[^a-zA-Z0-9_]+/'
# specialCharsRemoveReplace: '-'