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

Content sliding problem when using mask #636

Open
user123801 opened this issue Jul 30, 2024 · 2 comments
Open

Content sliding problem when using mask #636

user123801 opened this issue Jul 30, 2024 · 2 comments

Comments

@user123801
Copy link

PHP 8.2.18
TYPO3 12.4.17
mask 8.3.11

This is the page tree I use for this.
screenshot

When setting up a TYPO3 project with mask and setting slide = -1 for one of my columns in the backend and then setting a page to hidden = 1, then creating a subpage below the hidden page, it does not inherit the content from the page "Home" to the page "subpage". Content sliding from the page "Home" to "page1" works just fine.

Typoscript:

page = PAGE
page {
    10 = FLUIDTEMPLATE

    templateRootPaths.0 = path/to/templates/
    layoutRootPaths.0 = path/to/layouts/
    partialRootPaths.0 = path/to/partials

    10 {
        # Template setzen
        templateName = Default

        variables {
            content_footer < styles.content.get
            content_footer.select.where = {#colPos}=2
            content_footer.slide = -1
        }
}

The only difference between this and my other projects is mask, so I suspect it has something to do with it. Although there weren't any errors in the log files. The variable content_footer is just empty on the page "subpage", but not empty on the other pages. The only content is on the page "Home".

Any idea how to fix this? Anyone else had this problem?

@nhovratov
Copy link
Collaborator

This doesn't have anything to do with Mask. It must be some other difference in your projects. It is "simply" TypoScript API where Mask is not involved at all besides providing the Content Element definition.

I don't know, this setup looks broken to me in the first place. What does it mean if a parent page is disabled? Right now TYPO3 allows to view subpages of it, if you don't extend access restrictions to subpages. I'm not sure what exactly happens if the rootline is built and a page is disabled in between. I need to have a look at the code.

Have you tried looking into the forge issue tracker of TYPO3?

@user123801
Copy link
Author

Thanks for the reply. I see.

A parent page is disabled if the field hidden is set to 1. As in if I do this:
Bildschirmfoto 2024-07-31 um 08 15 46

If the setup looks broken, it might be because I only shared the relevant typoscript that should give me the variable and handle the content sliding. There is more typoscript, but it doesn't change any relevant settings for this, i. e. does not interfere with content sliding for this column.

And I did check the issue tracker, didn't give me any results on that.

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

2 participants