Upgrading from 2.3 to 2.4
Version 2.4 delivers the configuration of academic_projects per component, hides its content elements until a site enables them and resolves the links in the rich text of a project. Its FlexForm upgrade wizard migrates the plugin settings of older project lists for the first time, so it has to run again where it ran before. Work through the sections in order. Skip a step that does not apply to the installation.
Before you start
Version 2.4 runs on TYPO3 12.4 from 12.4.22 on and on TYPO3 13.4, with PHP 8.1 or later. That is the same as for 2.3, so the TYPO3 core does not have to change for this upgrade.
academic_projects 2.4 needs these packages. Upgrade them first or in the same deployment, in this order:
- fgtclb/environment-state-manager 1.x, new in 2.4, which academic_base 2.4 requires. Composer installs it on its own. A classic installation installs environment_state_manager before it activates academic_base 2.4.
- fgtclb/academic-base 2.4, the same release as this extension.
- fgtclb/category-types 2.4, the same release as this extension.
On TYPO3 12, make sure every site that renders projects defines
lib., before the update. The project page and the
project list render the short description and the funders through
<f: now, which fails without it. Fluid Styled Content and
most site packages define it, TYPO3 13 defines it for every site. Check it in
Site Management > TypoScript > Active TypoScript. See
Important: The rich text of a project resolves its links.
Update the package
composer require -W \
'fgtclb/academic-base':'~2.4.0' \
'fgtclb/category-types':'~2.4.0' \
'fgtclb/academic-projects':'~2.4.0'
A project that requires branch 2 as 2. keeps an inline alias such
as 2. working, see Important: The development branch installs as 2.4.x-dev.
On a classic installation, install environment_state_manager 1.x
from the TER in Admin Tools > Extensions first, then update
academic_base, category_types and
academic_projects there, in this order. Run the commands of this
page with
typo3/ instead of
vendor/.
vendor/bin/typo3 cache:flush
Run the upgrade wizards
This extension adds no database column in 2.4. Both wizards require the
missing tables and columns of the installation to be added anyway.
upgrade: adds them before it runs a wizard,
Admin Tools > Upgrade > Upgrade Wizard asks for it first.
Run the two wizards by name:
-
academic, Migrate academic_projects plugins from "list_type" to "CType". It turns the Insert plugin content elements of the pluginsProjects_ plugin Upgrade Wizard academicprojects_andprojectlist academicprojects_into content elements of the type of the same name. It is unchanged in 2.4 and has nothing to do on an installation that ran it before.projectlistsingle vendor/bin/typo3 upgrade:run academicProjects_pluginUpgradeWizardCopied! -
academic, Migrate the plugin settings of academic_projects project lists stored before 2.0. It rewrites the settings of 1.x and early 2.0 project lists:Projects_ flex Form Upgrade Wizard settings.becomeshide_ completed_ projects settings.,active State settings.becomesfilter. options settings.andhide Filter settings.becomessorting. options settings.. A new setting that a save in the backend stored already is kept. Up to 2.3 the wizard migrated no record at all. See Important: The FlexForm upgrade wizard migrates records and Important: FlexForm upgrade wizard migrates the setting name of 1.x.hide Sorting It reads the Insert plugin elements of 1.x as well, so the two wizards can run in either order, also together in one bare
vendor/. Up to 2.3 it read the content elements the plugin wizard creates only, and a barebin/ typo3 upgrade: run upgrade:recorded it as done before it had anything to read. See Important: FlexForm upgrade wizard migrates "Insert plugin" elements of 1.x.run An installation that ran it before has it recorded as done, and TYPO3 does not offer it again. TYPO3 13 marks a wizard undone with
vendor/. TYPO3 12 has no such command: open Admin Tools > Upgrade > Upgrade Wizard, find the wizard under Wizards marked as done and choose Mark undone. For a wizard that was never marked done, the TYPO3 13 command fails with a message, which is harmless. Then run the wizard:bin/ typo3 upgrade: mark: undone academic Projects_ flex Form Upgrade Wizard vendor/bin/typo3 upgrade:run academicProjects_flexFormUpgradeWizardCopied!Running it again is safe. It only rewrites a FlexForm that still holds one of the old setting names, and it is offered only while one does.
Adapt the configuration
The configuration of this extension changed shape in 2.4: one component per
content element, a separate component for the
styles. override, the page TSconfig as a
selectable entry and the folder Configuration/ spelled
Configuration/. The complete list of paths and names is in
Breaking: Site sets and static templates have been restructured.
Make the content elements selectable
The page TSconfig every installation includes hides the content elements Projects and Projects (selected) now. The page TSconfig of a component brings its element back. Enable them on every site that uses them, with one of the two mechanisms and never with both:
- TYPO3 13 with site sets: the site configuration depends on
fgtclb/. The set keeps the name it had in 2.3 and includes every component now, so a site that depends on it already needs no change. A site may name the component sets instead. It then addsacademic- projects fgtclb/as well, or definesacademic- projects- content- load styles.itself: the page template of the page type Project renders that object and fails without it.content. get Content - TYPO3 12, or TYPO3 13 without site sets: in the page record of every site root, field Include static Page TSconfig (from extensions) on the tab Resources, add Academic Projects: All components (academic_projects), or the entries of the components the site uses. The entry is new in 2.4, there is nothing to replace.
Existing content elements keep rendering in the frontend either way. In the
backend, an existing element on a page where its component is not enabled
keeps its type when it is saved. academic_base 2.4 shows the stored
type as the selected option, followed by (not enabled on this
page). The warning of the changelog entry, that saving such an element writes
another
CType
, describes a state the 2.4 release of
academic_base no longer has.
Complete the static template
This step concerns sites that include the TypoScript through a
sys_ record, which is every site on TYPO3 12.
The entry of 2.3, Academic Projects, keeps its stored value
EXT: and is called
Academic Projects: Shared plugin settings and page rendering
(academic_projects) now. It no longer carries the
styles. override that 2.3 included with it,
and the page template of the page type Project renders that
object. Without it, a project page fails.
Open the
sys_ record of every site root, field
Include TypoScript sets on the tab Advanced Options,
and replace the entry with Academic Projects: All components
(academic_projects). Alternatively add Academic Projects: Content
load override (academic_projects) next to it, or define
styles. in the site package.
Adjust imports of shipped files
A site package that imports a file of this extension by path checks every
@import
. An import of a missing file is silent, so a wrong path
shows up as missing configuration, not as an error.
Configuration/isTs Config/ Configuration/now, and the wizard fileTSconfig/ Configuration/isTs Config/ Wizards/ New Content Element. tsconfig Configuration/.TSconfig/ Full/ page. tsconfig Configuration/is gone. It carried nothing but a comment. The backend layout of the page type is part of the page TSconfig every installation includes now, see Important: The backend layout is registered for every installation.Ts Config/ page. tsconfig Configuration/TypoScript/setup.typoscriptno longer imports thestyles.override. Importcontent. get Content Configuration/TypoScript/ContentLoad/setup.typoscriptwhere the site needs it. The old fileConfiguration/is gone.Typo Script/ Content/ Content Load. typoscript Configuration/Sets/AcademicProjects/constants.typoscriptandsetup.are gone. Import the files oftyposcript Configuration/instead.Typo Script/
Move label overrides
The templates read label overrides from the path the TYPO3 documentation
names. An override under
plugin.
no longer has an effect. Move it to
plugin., or to
plugin. for one plugin.
This includes the labels of the filter form. See
Important: Label overrides are read from the documented path and
Important: Label overrides of the filters are read from the plugin path.
Adapt templates and assets
Version 2.4 changes these templates and partials. A copy of one of them in a
site package keeps rendering the copy, so compare each copy with the shipped
file and take over the changes, see Overriding templates. The paths below
are relative to Resources/:
| File | What changed | Entry |
|---|---|---|
Pages/,
Partials/ | The short description, and on the page the funders as well, are
rendered with
<f: instead of
<f:, so that their links resolve. | Important: The rich text of a project resolves its links |
Pages/ | The categories are read from
{project.. | Important: The project page type renders its categories |
Pages/ | The heading falls back to the title of the page record taken from
{page}
or
{data}
. | Important: Project page reads the page record from page |
Partials/ | Offers the category types
plugin.
names, in that order, and puts the ones after
filter. into a More filters
section with labels of its own. | Feature: Choose, order and label the project filters, Important: Label overrides of the filters are read from the plugin path |
Pages/,
Partials/,
Partials/,
Partials/,
Partials/,
Partials/ | The translations pass the extension name
Academic
instead of
academic_. A copy that keeps the old
name does not see the label overrides of the previous section. | Important: Label overrides are read from the documented path |
Partials/ | Renders a submit button inside
<noscript>
for visitors
without JavaScript. | Important: The filter form works under a security policy |
Backend/ | Removed, and so is ext_, which
registered it. It was never rendered. The page module shows the
categories of a project page through category_types
now, which takes an override under
templates.. | Important: The page module shows the page categories |
A site package that shipped Academicproject. as the page template
of the page type renames it to Academic. The extension sets
page. itself now. See
Important: The page template name of the academic project page type is set explicitly.
Adapt your code
- Code that extends or replaces
Project, theDemand Demandor theFactory Projecttakes the new flagRepository showinto account. No signature changed. See Important: Extended ProjectDemand and demand handling.Hidden Records \FGTCLB\renders throughAcademic Projects\ View Helpers\ Format\ Replace View Helper rendernow instead of the static() render, and declaresStatic () content,substringandreplacementasmixed. A subclass that overrides or callsrendermoves toStatic () render. Templates are not affected, see Important: The replace view helper declares its argument types.()
Check the result
- The new content element wizard offers Projects and Projects (selected) on the pages of every site that uses them, and an existing element opens with its type.
- A project page renders its template, its content and its categories, links in its short description and funders resolve, and its page module shows the categories of the page.
- A project list of 1.x shows or hides completed projects as it did before, and its filter and sorting forms are shown or hidden as configured.
- A list that hides a part of its form keeps the preset of that part when a visitor uses the rest of the form, a list of running projects with a hidden state select shows running projects only, see Important: A hidden part of the form keeps the preset value.
- A list shows a project only when it carries every selected category, as before, and not when it carries only a subcategory of one. The description of the field says so now, see Important: The description of Categories names their rule.
- A list filtered by Active lists projects without an end date now, so a paginated list can grow by some entries. See Important: Projects without an end date are now active.
- On a site language with
fallback, the Projects (selected) content element shows the translated projects. See Important: Selected projects are translated in free fallback mode.Type: free