Important: Overrides of the program list templates
Description
The program list updates in place when a filter or the sorting changes, see Feature: The program list updates without a reload. For that, the templates of the list changed:
Templates/wraps the list in an element with the uid of the content element, puts the form and the results into a region of their own, and renders an empty status element after it.Program/ List. html Partials/marks the form and renders a submit button in a marked column.Program/ Sorting And Filters. html Partials/andProgram/ Demand Categories. html Partials/no longer renderProgram/ Demand Sorting. html onchange="this.on their selects, and mark them instead.form. submit ()" - All four load the module, so that it runs whichever of them a project overrides.
The attributes are listed in Updating the list without a reload.
Impact
An override from before keeps working, with a page reload where the list cannot be updated in place:
- An override of
DemandorCategories. html Demandthat keeps the inline handlers reloads the page on a change of its selects, as before. The selects of the other partial are updated in place. Remove the handlers to get the update in place for all of them. With JavaScript, the submit button of the extension'sSorting. html Sortingstays hidden. Version 3.0 no longer allows the handler in the Content Security Policy, as 2.4 did, so under an enforced policy the override needs the hash of its handler in theAnd Filters. html csp.of the site, see Important: The filter form works under a security policy.yaml - An override of
List.reloads the page on a change. Add the wrapper, the region and the status element to get the update in place.html - An override of
Sortingis updated in place, becauseAnd Filters. html List.loads the module as well. Add the submit button inside an element with the attributehtml data-, so that a visitor without JavaScript can submit the form.academic- programs- list- submit - An override of both
List.andhtml Sortingreloads the page on a change, through the attribute the selects of the filter partials carry. Add the parts of both to get the update in place.And Filters. html
A project that reloaded the list through a script of its own, a turbo frame for example, can drop that script.