Configuration
This extension ships its frontend TypoScript and its backend page TSconfig in two forms: as TYPO3 site sets, and as classic static templates plus page TSconfig files that are selected on a page. Both forms read the very same files, so they configure an installation identically.
Pick one of them per site and stay with it — see Do not combine both for what happens otherwise.
What the sets contain
This extension ships six content elements, so it ships six component sets and one aggregate set that depends on all of them.
All six are driven by one Extbase plugin, so they share one TypoScript block,
plugin.. That block is shipped once, in
Configuration/, and every component includes it.
Which component sets a site names therefore decides which content elements the
backend offers, not how much TypoScript is loaded.
| Set | Delivers |
|---|---|
fgtclb/ | The Persons List content element. |
fgtclb/ | The Persons List and Detail content element. |
fgtclb/ | The Persons Detail content element. |
fgtclb/ | The Contacts content element, and the FlexForm restriction that hides the list, sorting and pagination fields for it. |
fgtclb/ | The Profiles: Selected Profiles content element. |
fgtclb/ | The Profiles: Selected Contracts content element. |
fgtclb/ | Everything above. This is the set to use unless you deliberately want a subset. |
fgtclb/ | The name this extension published before the sets were cut per
component. It delivers exactly what fgtclb/
delivers, and is kept so that existing site configurations keep
working. |
fgtclb/ | Everything the aggregate delivers, plus a
page
object
that renders content on a plain Bootstrap page. Meant for an
installation without a site package of its own — an alternative to
fgtclb/, never an addition to it. |
Every component set depends on fgtclb/, the set of
EXT:academic_base that labels the content element group all academic
extensions sort their elements into.
The site settings of this extension — the detail page, and the default grouping,
sorting and pagination of a profile list — are declared with the aggregate set.
A site that depends on a single component set still gets the shipped defaults,
but can only override them in Site Settings when it depends on
fgtclb/.
Include the site set
Add the set to the config. of the site that should offer the content
elements:
base: 'https://example.com/'
rootPageId: 1
+dependencies:
+ - fgtclb/academic-persons
See also TYPO3 Explained, Using a site set as dependency in a site.
Include static templates
For an installation that still configures its frontend through
sys_ records, the same files are registered as static templates
and as selectable page TSconfig files.
Tip
On TYPO3 v13 and v14 we recommend the site set — and if you use it, do not
press the backend button Create a root TypoScript record on that
site. The
sys_ record it creates carries the flag
Clear for constants and setup, and that flag discards everything
the site sets contributed. An installation that is already in that state
gets its configuration back by selecting the static templates below in that
very record.
Include static TypoScript
Edit the
sys_ record of the site root and add the entry to
Include static (from extensions):
| Entry | Delivers |
|---|---|
| Academic Persons: All components (academic_persons) | Every component this extension ships, in one entry. This is the entry to use. |
| Academic Persons: Shared plugin settings (academic_persons) | The shared
plugin. block on its own.
This is what installations selected before version 2.4, then named
Academic Persons Settings. The stored value did not
change, so such a record keeps working untouched. |
| Academic Persons: Standalone page (academic_persons) | Everything All components delivers, plus the
page
object of the standalone flavour. Do not select
it on a site that has a site package of its own. |
There is one further entry per component — Academic Persons: Profile list, Academic Persons: Profile list and detail, Academic Persons: Profile detail, Academic Persons: Profile card, Academic Persons: Selected profiles and Academic Persons: Selected contracts. They exist so that the static mechanism has the same shape as the sets. Because all six components share one TypoScript block, each of them delivers the same thing, and selecting more than one of them changes nothing.
Include static page TSconfig
This is the half that decides which content elements the backend offers. Edit the page record of the site root, tab Resources, field Page TSconfig, and add the entries for the content elements the page tree should offer:
| Entry | Delivers |
|---|---|
| Academic Persons: All components (academic_persons) | Every component this extension ships, in one entry. |
| Academic Persons: Profile list (academic_persons) | Makes the Persons List content element selectable, and configures its entry in the new content element wizard. |
| Academic Persons: Profile list and detail (academic_persons) | The same for Persons List and Detail. |
| Academic Persons: Profile detail (academic_persons) | The same for Persons Detail. |
| Academic Persons: Profile card (academic_persons) | The same for Contacts, plus the FlexForm restriction of that element. |
| Academic Persons: Selected profiles (academic_persons) | The same for Profiles: Selected Profiles. |
| Academic Persons: Selected contracts (academic_persons) | The same for Profiles: Selected Contracts. |
The setting is inherited by every page below the one it is set on.
Do not combine both
A site that uses the site set and the static template reads the shipped
files twice. The site set is applied before the
sys_ record, so
the second read happens after the site settings and after
config/ — and it resets every constant
the extension ships a default for back to that default.
Nothing else is damaged: the Constants and Setup fields
of the
sys_ record, the page TSconfig of a page and the page
TSconfig files selected on a page are all applied afterwards and still win. Use
one mechanism per site and the question does not arise.