Important: The program page renders its own content
Description
The page template of the page type Academic program rendered the
content elements of the page through the global TypoScript object
styles.. Since the configuration was cut per
component in this version, this extension defines that object only in the
component
fgtclb/ and in its static
template, which Academic Programs: All components includes. The
content load components of EXT:academic_partners and EXT:academic_projects
define the same path. A site on the component sets or the component static
templates of this extension without any of them got an exception on every
program page:
No Content Object definition found at TypoScript object path "styles.content.getContent"
The page object of the program page type now carries the content itself, as the
variable
program:
[page && traverse(page, "doktype") == 20]
page.10.variables.programContent = CONTENT
page.10.variables.programContent {
table = tt_content
select {
orderBy = sorting, uid
where = {#colPos}=0
}
}
[END]
Resources/ renders it as
{program, on a
FLUIDTEMPLATE
page object and, on TYPO3 v13, on a
PAGEVIEW
one alike. Every
set and every static template of this extension delivers it, except the content
load override on its own.
The content load component is unchanged and still part of the aggregate set
fgtclb/ and of the static template
Academic Programs: All components.
Impact
- A program page renders on a site without the content load component.
- It renders the same elements as before: the main column, in manual order,
in the language of the page. Elements that share a
sortingvalue come in uid order. - A customisation of
styles., for example one that slides the content from the parent pages, no longer reaches program pages. The same holds for a customisation ofcontent. get Content styles.that was parsed before the override, because the override copied it intocontent. get styles..content. get Content - A template override of
Academicthat rendersProgram. html styles.keeps working as long as the site includes one of the content load components that define it.content. get Content
Migration
Move a customisation of
styles. for program
pages to
page., inside the same
condition, see The content of a program page:
[page && traverse(page, "doktype") == 20]
page.10.variables.programContent {
select.where = {#colPos}=1
}
[END]
A template override of Academic can switch to
{program, so that it no longer depends on the
content load component.