Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!!! Changes to Fluid view helpers in Neos 9 #5425

Open
mhsdesign opened this issue Jan 7, 2025 · 0 comments
Open

!!! Changes to Fluid view helpers in Neos 9 #5425

mhsdesign opened this issue Jan 7, 2025 · 0 comments
Labels

Comments

@mhsdesign
Copy link
Member

This issue documents what changed regarding fluid viewhelpers.
There might be more new viewhelpers needed to allow all previously usecases again see: #5023

New

Neos\Neos\ViewHelpers\Node\LabelViewHelper

Introduced via #5216

<neos:node.label node="{node}" />

Removed

Neos\ContentRepository\ViewHelpers\Widget\PaginateViewHelper

docs: https://neos.readthedocs.io/en/8.3/References/ViewHelpers/ContentRepository.html#paginateviewhelper

removed via a539168

as discussed here there is no 1 to 1 replacement in fluid and also when migrating all code to fusion there is no core replacement either. The package Flowpack.Listable could possibly replace its usages. But as we continue to support plugins in Fusion we could implement a pagination plugin?

<cr:widget.paginate parentNode="{parentNode}" as="paginatedNodes" configuration="{itemsPerPage: 5}">
  // use {paginatedNodes} inside a <f:for> loop.
</cr:widget.paginate>

Neos\Neos\ViewHelpers\Backend\ChangeStatsViewHelper (kinda internal)

docs: https://neos.readthedocs.io/en/8.3/References/ViewHelpers/Neos.html#neos-backend-changestats

removed via 5f1e296

<neos:backend.changeStats changeCounts="{changesCounts}">
    // use {newCountRatio} etc...
</neos:backend.changeStats>
@mhsdesign mhsdesign added the 9.0 label Jan 7, 2025
mhsdesign added a commit to mhsdesign/neos-development-collection that referenced this issue Jan 7, 2025
The cr paginate widget was removed see
neos#5425

But as identified here there is still a method privilege to be adjusted:
neos#4478 (comment)

Further long ago this change seems to contain a hiccup introducing a policy for a `LinkRepositoryController` which was NEVER part of the codebase though:

neos@f5053cc#diff-818aacc12f1dbf0bc391a8711ae5a3d56cceb29494b5997dd2a43d793b6dd44eR8

Thus this line was adjusted further.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant