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

Frontend shortcut behaviour for folder nodes not as expected #19

Open
batabana opened this issue Nov 15, 2022 · 0 comments
Open

Frontend shortcut behaviour for folder nodes not as expected #19

batabana opened this issue Nov 15, 2022 · 0 comments

Comments

@batabana
Copy link

Thx for the package! One thing that didn't work for me was the frontend behaviour of the folders -> when accessing a route of a folder in the frontend I was not redirected to the parent but instead kept getting the backend shortcut message ("This is a shortcut to the parent page. Click ___ to continue to the page.").

We found two options to fix this:

  • Use Neos.Neos:Shortcut as supertype for the folder nodetype. Works in the frontend but overwrites the package intended behaviour in the backend (folder nodetypes are rendered as standard shortcuts in the backend).
  • Overwrite the Breadlesscode.NodeTypes.Folder:Document.Folder prototype, something along the lines below. Didn't seem right to mock the shortcut behaviour like this, so I decided for the first option in my case.
    default {
        renderer >
        renderer = Neos.Fusion:Http.Message {
            httpResponseHead {
                statusCode = 302
                headers.Location = Neos.Neos:NodeUri {
                    node = ${q(documentNode).parent().get()}
                }
            }
        }
    }

I'm not completely sure if this is just an issue of me not using the package correctly or if other people are using workarounds like this as well and what a good solution could be.

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

No branches or pull requests

1 participant