Templates and frontend assets
The output of the job board is rendered with Fluid. Copy the files you want to change into your site package and register its paths.
Override templates
Set the site settings jobboard.templateRootPath, jobboard.partialRootPath and jobboard.layoutRootPath to the folders of your site package. Files that you do not copy are taken from the extension.
jobboard:
templateRootPath: 'EXT:my_sitepackage/Resources/Private/Extensions/Jobboard/Templates/'
partialRootPath: 'EXT:my_sitepackage/Resources/Private/Extensions/Jobboard/Partials/'
layoutRootPath: 'EXT:my_sitepackage/Resources/Private/Extensions/Jobboard/Layouts/'
Alternatively, add paths in TypoScript, see View paths.
Template files
All files are in EXT:.
| File | Purpose |
|---|---|
Layouts/ | Wrapper
<div class="tx- |
Templates/ | List: assets, search form, map and list of jobs |
Templates/ | Search result, same structure as the list |
Templates/ | Detail view. One
<f: per group of fields, for
example render or render. |
Partials/ | CSS and JavaScript of list and search, see JavaScript and CSS |
Partials/ | Search form and map |
Partials/ | The search form itself. Provides the URL for the location suggestions, see Own search form templates. |
Partials/ | Default list rendering as table |
Partials/ | Alternative list rendering as cards, see Card layout |
Partials/ | Table cell with the link to the job |
Partials/ | Occupational fields of a job, see Partial "Job/JobAreas" |
Partials/ | Structured data of the detail view, see Structured data (JSON-LD) |
Templates/ | Preview in the backend page module |
Pdf/ | PDF version of a job, see PDF export |
If a job has an external link (filled by an import only), the list links to this URL in a new window instead of the detail view.
Card layout
The partial Partials/ renders each job as a card
with occupational fields, position, application deadline, title, a
shortened description, a "Read more" button and, if
jobboard.pidOfApplicationForm is set, an "Apply online" button.
It has no "Remember?" checkbox.
To use it, override Templates/ and
Templates/ and replace the table partial:
<f:render partial="Types/Card" arguments="{objects: jobs}"/>
Partial "Job/JobAreas"
Renders all occupational fields of a job, each in a
<span class="job-.
job- The job (
\JWeiland\). Required.Jobboard\ Domain\ Model\ Job separator- Text between the occupational fields. Optional, default
', '. Use''if the spacing is done with CSS.
<f:render partial="Job/JobAreas" arguments="{job: job, separator: ' | '}"/>
Structured data (JSON-LD)
The detail view adds a schema. as
<script type="application/ with these properties: title,
description, identifier (employer and reference number), start date,
valid (application deadline), hiring organization with
logo, job location, base salary (monthly, in EUR) and direct
(true if the job has an email address).
Override Partials/ to change the properties. Follow
the rules in the comment of this partial to keep the output valid JSON:
render every dynamic value with the tag syntax
<f:.
JavaScript and CSS
The partial Partials/ adds these files with the
asset collector of TYPO3:
Css/,jquery- ui. min. css Css/style. css Java(jQuery)Script/ jquery- 3. 7. 1. min. js Java(suggestions of the location field)Script/ jquery- ui. min. js Java(sortable table)Script/ datatables. min. js Java(cookie of remembered jobs)Script/ js. cookie- 2. 2. 1. min. js Java(job board logic)Script/ script. js
The job board ships its own jQuery. script. releases it with
j after jQuery UI and DataTables have been
attached to it. A jQuery that your site loads itself stays untouched.
The texts of the table (DataTables) come from
Java.
To use other libraries or files, override the partial
Partials/.
Labels
Frontend labels are in
EXT:jobboard/Resources/Private/Language/locallang.xlf (English)
and de. (German). Override single labels in your site
package, see Custom translations.
Some useful label keys:
dateFormat - Date format of the list, the cards, the detail view and the PDF
version, for example
Y-(English) orm- d d.(German).m. Y job.apply Online - Text of the "Apply online" link.
job.,download Pdf job.download Pdf. addition - Text of the link to the PDF version. The addition is hidden on small screens.
search.no_ jobs_ found - Text if no job matches.
ViewHelper for the map
Partials/ uses the ViewHelper
\JWeiland\ to build the
map markers of all listed jobs. Each marker gets the job title and, if the
job has an application deadline and an employment scope, an info window
with both.
<html xmlns:jobboard="http://typo3.org/ns/JWeiland/Jobboard/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:variable name="poiCollections" value="{jobboard:jobPoiCollection(jobs: jobs)}"/>
Without EXT:maps2, the ViewHelper returns an empty list and no map is rendered.