Skip to content

Conversation

@s2b
Copy link
Contributor

@s2b s2b commented Aug 11, 2025

There are two main syntax variants to import a ViewHelper namespace
in a template:

{namespace my=Vendor\MyPackage\ViewHelpers}

<html xmlns:my="http://typo3.org/ns/Vendor/MyPackage/ViewHelpers" data-namespace-typo3-fluid="true">

The second variant is mainly used/preferred because it provides
autocompletion for ViewHelpers in supporting IDEs. However, a
third variant is implemented, which mixes the two variants:

<html xmlns:my="Vendor\MyPackage\ViewHelpers" data-namespace-typo3-fluid="true">

This doesn't make much sense because it neither provides
autocompletion nor is it valid XML syntax because it's
not a valid URL.

This patch deprecates that syntax variant, which will no longer
work in Fluid v5.

Resolves: #1019

There are two main syntax variants to import a ViewHelper namespace
in a template:

```
{namespace my=Vendor\MyPackage\ViewHelpers}

<html xmlns:my="http://typo3.org/ns/Vendor/MyPackage/ViewHelpers" data-namespace-typo3-fluid="true">
```

The second variant is mainly used/preferred because it provides
autocompletion for ViewHelpers in supporting IDEs. However, a
third variant is implemented, which mixes the two variants:

```
<html xmlns:my="Vendor\MyPackage\ViewHelpers" data-namespace-typo3-fluid="true">
```

This doesn't make much sense because it neither provides
autocompletion nor is it valid XML syntax because it's
not a valid URL.

This patch deprecates that syntax variant, which will no longer
work in Fluid v5.

Resolves: #1019
@lolli42 lolli42 force-pushed the task/deprecateNamespaceSyntax branch from ba465a0 to e5e1724 Compare August 12, 2025 10:52
@lolli42 lolli42 merged commit 3dd8443 into 4.5 Aug 12, 2025
8 checks passed
@lolli42 lolli42 deleted the task/deprecateNamespaceSyntax branch August 12, 2025 10:54
lolli42 pushed a commit that referenced this pull request Aug 12, 2025
There are two main syntax variants to import a ViewHelper namespace
in a template:

```
{namespace my=Vendor\MyPackage\ViewHelpers}

<html xmlns:my="http://typo3.org/ns/Vendor/MyPackage/ViewHelpers" data-namespace-typo3-fluid="true">
```

The second variant is mainly used/preferred because it provides
autocompletion for ViewHelpers in supporting IDEs. However, a
third variant is implemented, which mixes the two variants:

```
<html xmlns:my="Vendor\MyPackage\ViewHelpers" data-namespace-typo3-fluid="true">
```

This doesn't make much sense because it neither provides
autocompletion nor is it valid XML syntax because it's
not a valid URL.

This patch deprecates that syntax variant, which will no longer
work in Fluid v5.

Resolves: #1019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants