Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
126 stars 86 forks source link

Content sliding problem when using mask #636

Open user123801 opened 1 month ago

user123801 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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.