TypoScript
The site set
jweiland/ provides this TypoScript setup. You
normally configure the job board with the
site settings and only need
TypoScript for special cases.
plugin.tx_jobboard {
view {
templateRootPaths {
0 = EXT:jobboard/Resources/Private/Templates/
1 = {$jobboard.templateRootPath}
}
partialRootPaths {
0 = EXT:jobboard/Resources/Private/Partials/
1 = {$jobboard.partialRootPath}
# Partial "Maps2/PoiCollection" of the optional EXT:maps2. It is only
# rendered, if EXT:maps2 is installed. Otherwise, this path resolves
# to nothing and is ignored.
2 = EXT:maps2/Resources/Private/Partials/
}
layoutRootPaths {
0 = EXT:jobboard/Resources/Private/Layouts/
1 = {$jobboard.layoutRootPath}
}
}
persistence {
storagePid = {$jobboard.storagePid}
recursive = 3
}
settings {
pidOfDetailPage = {$jobboard.pidOfDetailPage}
pidOfApplicationForm = {$jobboard.pidOfApplicationForm}
showJobAreaCount = {$jobboard.showJobAreaCount}
pageBrowser {
enable = {$jobboard.pageBrowser.enable}
class = JWeiland\Jobboard\Pagination\GetPostPagination
itemsPerPage = {$jobboard.pageBrowser.itemsPerPage}
}
}
# Use the TypoScript value, if the FlexForm option is empty
ignoreFlexFormSettingsIfEmpty = showJobAreaCount, pageBrowser.enable
}
# Show the job title as page title on the detail view. Must be ordered before
# "seo" (page field "seo_title") and "record" (page title) as the first
# provider returning a non-empty title wins.
config.pageTitleProviders {
jobboard {
provider = JWeiland\Jobboard\PageTitle\JobPageTitleProvider
before = record, seo
}
}
View paths
The template, partial and layout paths of index
1
come from
the site settings. The partial path of index
2
contains the
partial Maps2/ of EXT:maps2, which renders the map.
Without EXT:maps2, this path is ignored. See Templates and frontend assets for
overriding templates.
Storage folder
persistence. is set from the site setting
jobboard.storagePid.
persistence.
finds jobs in up to three levels of subpages of the storage folders.
The content element "Job board" has no field "Record Storage Page". The storage folder is configured for the whole site.
Settings in Fluid
These values are available as
{settings.<name>}
in all templates
of the plugin, together with the options of the content element
(see Content element "Job board"):
settings.pid Of Detail Page settings.pid Of Application Form settings.show Job Area Count settings.page Browser. enable settings.page Browser. items Per Page
Page browser
settings. comes from the site setting
jobboard.pageBrowser.enable. The option
Show page browser of the content element overrides it.
Only the value 1 shows the page browser. If the content element
sets Max entries to show (0 for all) to a number greater than 0, the
page browser is never shown.
settings. is the class that builds the
links of the page browser. It must implement
\TYPO3\, otherwise
\JWeiland\ is used. Its
constructor gets the paginator and the arguments of the current request.
settings. comes from the site
setting jobboard.pageBrowser.itemsPerPage.
Empty content element options
ignore with the value
show lets the empty options
"Show number of jobs per job area" and "Show page browser" of the content
element fall back to the TypoScript value. Extbase treats an empty string
and 0 as empty. That is why the option "Hide" of the content
element stores the value -1. Only the value 1 shows the
number of jobs or the page browser.
Page title provider
config. registers the page title
provider of the detail view. See Job title as page title.