---
title: "Important: Profile names leave out empty parts"
manual: "Academic Profiles"
version: "main"
permalink: "https://docs.typo3.org/permalink/fgtclb/academic-persons:important-ace-853-academic-persons@main"
source: "Changelog/2.4/Important-ProfileNamesLeaveOutEmptyParts.rst"
rendered: "2026-10-15T10:24:29+00:00"
---

# Important: Profile names leave out empty parts {#important-ace-853-academic-persons}

## Description {#description}

The templates composed the name of a profile from its title, first name, middle
name and last name with a space between every two parts, also when a part was
empty. A profile without a middle name was rendered with two spaces between
first and last name, and on the detail page a profile without a title started
with a space.

The name now leaves out the parts a profile does not have, together with their
space:

-   The heading of a profile in
    [`Resources/Private/Partials/Profile/Item.html`](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FileStructure/Resources/Private/Index.html#file-extension-resources-private-partials-somepartials-fluid-html), which the
    **Persons List**, **Persons List and Detail**,
    **Profile Card**, **Profiles: Selected Profiles** and
    **Profiles: Selected Contracts** plugins render for every profile,
    and the contacts plugin of `EXT:academic_contacts4pages` as well. It has no
    title, as before.
-   The heading of [`Resources/Private/Templates/Profile/Detail.html`](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FileStructure/Resources/Private/Index.html#file-extension-resources-private-templates-controllername-actionname-fluid-html) and
    the `alt` text of the profile image on the detail page.

A profile with all four parts is rendered as before.

## Impact {#impact}

The page looks the same, browsers collapse the spaces. The markup changes:
the heading text and the `alt` attribute hold the name with single
spaces and without a leading space. Code or tests that match the rendered
markup may have to be adjusted.

## Affected Installations {#affected-installations}

Every installation that renders profiles without a title or a middle name.
Nothing has to be done on update.

A site that overrides one of the two files keeps the old composition. To take
over the change, use these expressions in the copy. In
`Partials/Profile/Item.html`, the `header` argument of both
headings:

```html
header: '{profile.firstName}{f:if(condition: profile.middleName, then: \' {profile.middleName}\')} {profile.lastName}',
```

In `Templates/Profile/Detail.html`, the `header` argument and the
`alt` attribute of the image:

```html
header: '{f:if(condition: profile.title, then: \'{profile.title} \')}{profile.firstName}{f:if(condition: profile.middleName, then: \' {profile.middleName}\')} {profile.lastName}',

alt="{f:if(condition: profile.title, then: '{profile.title} ')}{profile.firstName}{f:if(condition: profile.middleName, then: ' {profile.middleName}')} {profile.lastName}"
```
