Project

General

Profile

Actions

Bug #18079

closed

slide of cObj CONTENT stops if sysfolder in rootline

Added by Georg Ringer almost 17 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2008-01-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The slide-feature is a real great thing but it stops whenever there is a sysfolder in the rootline. No content elements of pages which are on a higher level are shown anymore!

This is especially nasty because sysfolders are often used to create some structures in the page tree.

How to reproduce: Create a page tree with a sys folder and some pages as child pages and place content on the root page.
TS-Code would be something like
page.10 < styles.content.get
page.10.slide = -1
(issue imported from #M7319)


Related issues 7 (1 open6 closed)

Related to TYPO3 Core - Bug #42558: Content sliding doesn't work when using 'show content from page'Closed2012-10-31

Actions
Related to TYPO3 Core - Feature #20933: Enable working with SysFolders in CONTENTClosed2009-08-26

Actions
Related to TYPO3 Core - Task #90947: Lift doktype restrictions in SlugHelper::resolveParentPageRecordClosed2020-04-04

Actions
Related to TYPO3 Core - Bug #90975: Fix typo in doktype checkClosedChristian Eßl2020-04-07

Actions
Related to TYPO3 Core - Bug #92762: Accessing a restricted subpage of a sysfolder triggers a 404 instead of 403Closed2020-11-03

Actions
Related to TYPO3 Core - Story #94430: pages.doktypes higher than 200 do not work properly as frontend pagesClosed2021-08-11

Actions
Related to TYPO3 Core - Feature #96366: Stop on additional bad doktypes for ContentObject slideAcceptedStefan Bürk2021-12-16

Actions
Actions #1

Updated by Andreas Rieser over 15 years ago

reproducable even in current TYPO3 4.2.6 with PHP 5.2.9

Actions #2

Updated by tyler kraft over 15 years ago

I think this might be because you can't do a select from sysfolder and styles.content.get uses the select function

(although I could be mistaken on this)

Actions #3

Updated by Henrik Ziegenhain over 14 years ago

This issue is still reproducable in TYPO3 v 4.4.1

Are there now some ideas to solve this ?

Actions #4

Updated by Daniel Nienhaus about 14 years ago

The problem seems to be in class.tslib_content.php (at line 3081 in 4.4.2). The function tslib_cObj->getSlidePids() uses t3lib_pageSelect->getPage() which eliminates all sysfolders. If you change it to t3lib_pageSelect->getPage_noCheck() it works fine. I think it would be safe to use getPage_noCheck() at this point as we shouldn't need to worry about parent-pages to be hidden or inaccessible. If that was the case, we shouldn't be at the child-page in the first place.

If you don't want to mess with core files, I created a quick extension, lfslidefix, which uses XCLASS to override getSlidePids(). Tested only with 4.4.2 and it should be a few hours before it's visible in TER.

Actions #5

Updated by Steffen Kamper about 14 years ago

that's wrong - getPage only restrict to non - deleted and pages without start- and endtime.

The part where this happens is tslib_cObj::checkPidArray where sysfolders are excluded..

cObj has a $checkPid_badDoktypeList which is responsible. Changing this would solve the issue, maybe it could be a new config var for TS?

Actions #6

Updated by Daniel Nienhaus about 14 years ago

$checkPid_badDoktypeList is just set to 255 over here and does not exclude sysfolders. My change wouldn't even work if this was the case.
On the other hand $where_hid_del in class t3lib_pageSelect, which is used in getPage(), contains "AND pages.doktype<200". This is set by setSysPageWhereClause() in tslib_fe. If this could be configurable, it should work.

Actions #7

Updated by Marc Bastian Heinrichs almost 14 years ago

Annoying bug - any chance to get this fixed in version 4.5?

Actions #8

Updated by Jo Hasenau almost 14 years ago

It's not a bug, it's a feature ;-)

IMHO a sysfolder should never be taken into account while fetching visible data from the pages table.

If you just want to structure a page tree, a sysfolder is not the way to go, since this is the job of the type "visual menu separator"

So IMHO the actual bug is to abuse a sysfolder for this purpose.

Actions #9

Updated by Susanne Moog over 13 years ago

This is actually a change of behavior. Just compared the behavior in 4.3.3 with 4.3.10 --> in 4.3.3 the slide works across sys folders, in 4.3.10 it does not work anymore. so something changed here. didn't have time to investigate this further currently.

Actions #10

Updated by Stefan Neufeind over 12 years ago

  • Target version deleted (0)

Just experienced the problem in an updated 4.5.16 and it worked until some time in the past (can't say until what version).

Imho using a "folder" for something like "footer navigation" (holding pages which are only reachable through the footer) is/was a clean way to do this.
For now changed the page from "sysfolder" to "page, hidden in menue" - dirty :-)

Actions #11

Updated by Bernd Wilke over 12 years ago

IMHO a sysfolder should never be taken into account while fetching visible data from the pages table.

just stumbled over this problem:

configure newsletters with direct_mail:
some content might be equal to most of the newsletters: try to slide it from page above.
so the page above the individual newsletters is a sysfolder (otherwise direct_mail will not accept the pages as newsletter) I can not slide the content.
A solution is very complex and not intuitive just because sliding breaks at sysfolders.

If you insists on taking no content from sysfolders, skip over sysfolders on sliding, but do not break it.

Actions #12

Updated by Helmut Hummel over 10 years ago

  • Description updated (diff)
  • Category deleted (Communication)
  • Is Regression set to No

Bernd Wilke wrote:

If you insists on taking no content from sysfolders, skip over sysfolders on sliding, but do not break it.

I agree. @Joey Do you also agree?

I now use the menu separator for such structural pages, but I see no reason for the different slide behavior for folders.
I do not even see a reason why folders should not be taken into account when fetching content

Actions #13

Updated by Helmut Hummel over 10 years ago

Jo Hasenau wrote:

IMHO a sysfolder should never be taken into account while fetching visible data from the pages table.
If you just want to structure a page tree, a sysfolder is not the way to go, since this is the job of the type "visual menu separator"
So IMHO the actual bug is to abuse a sysfolder for this purpose.

This is not about fetching data from pages, but fetching content from pages. Folders are meant to store content (of arbitrary type, not only but also tt_content). I don't see any abuse here...

Actions #14

Updated by Helmut Hummel over 10 years ago

  • Status changed from New to Accepted
Actions #15

Updated by Jo Hasenau over 10 years ago

Helmut Hummel wrote:

Jo Hasenau wrote:

IMHO a sysfolder should never be taken into account while fetching visible data from the pages table.
If you just want to structure a page tree, a sysfolder is not the way to go, since this is the job of the type "visual menu separator"
So IMHO the actual bug is to abuse a sysfolder for this purpose.

This is not about fetching data from pages, but fetching content from pages. Folders are meant to store content (of arbitrary type, not only but also tt_content). I don't see any abuse here...

I guess you misunderstood my objection. Actually I don't care, if sysfolders will be taken into account when sliding up the page tree, but IMHO this is just not necessary. :-)

The original bug description said:

This is especially nasty because sysfolders are often used to create some structures in the page tree.

So in the described use case the sys_folder does not contain any data but subpages. IMHO using sysfolders for this purpose is the abuse here, as this should be done with separator pages, since this is the only job they got: Creating structure in the backend view of the page tree.

Actions #16

Updated by Jo Hasenau over 10 years ago

But we should be aware of the fact, that this issue is quite old and people might have created a lot of page trees this way.

So if we reactivate sliding over sysfolders now, this might be kind of a breaking change, since it might have content appear in the frontend, that currently is not visible.

Actions #17

Updated by Stefan Neufeind over 10 years ago

Do we probably need a TS-setting like "stopAt..." which would default to enabled in 6.2 for compatibility and which we might consider to default to disabled (and deprecated?) if we like for 6.3? So people would still have a way to "migrate" once they update and run into that error.
Or just introduce the change for 6.3 and assume that somebody upgrading can take care of the change (needs to be mentioned in changelogs, ...) without a "stopAt..."-switch?

Actions #18

Updated by Benjamin Robinson over 10 years ago

Jo Hasenau wrote:

So in the described use case the sys_folder does not contain any data but subpages. IMHO using sysfolders for this purpose is the abuse here, as this should be done with separator pages, since this is the only job they got: Creating structure in the backend view of the page tree.

IMHO separator pages are to create a visual separator between two pages, not necessarily to group subpages. F.e. they may be used to create a space or line between two menu-items (in TSREF they are called "Spacer" – menu item state SPC). I prefer to use folders to group pages (f.e. for the meta-navigation), but sliding should work with both page types.

Until sliding works properly a workaround is to use shortcut-pages (or separator pages) with the option "hide in menus" (only neccessary for separator-pages if SPC is in use). BTW separator pages with the option "hide in menus" unfortunately have the same icon like those without that option.

Actions #19

Updated by Stefan Neufeind over 10 years ago

I agree with Ben about (usually) not using spacer-pages, but sysfolders instead.

Another example: If using things like Direct Mail you are (or at least were in direct_mail foro 4.5?) required to use a sysfolder to place your newsmail-pages into, as far as I experienced. And if you then want to show those newsmails on the website as well, you end up having a sysfolder in the middle of your tree.

Actions #20

Updated by Jo Hasenau over 10 years ago

Well - maybe we are talking about different things here - still I get what you mean. But actually the meta navigation container is just the contrary of "creating structure in the page tree", since it takes pages out of the usual page tree structure to be presented in a visually different menu structure.

And of course there is no need to place a direct mail container within the actual page tree, since you just can't create menus with containers in between, so you have to access the content in a special way already.

Which brings me back to the actual problem: If you position your container folders the way you described it and other people did so as well, we will get a breaking change as soon as sysfolders will not stop the slide mechanism. The reason is, that sliding would suddenly start working, where it was not supposed to be working before. This will result in content being visible on pages, where it was just not accessible before due to the behaviour of slide in combination with sys folders.

So IF we were going to "fix" this, we have to make sure to mark it as a breaking change and inform people about some maybe unwanted new behaviour.

Actions #21

Updated by Ernesto Baschny about 10 years ago

We could just add a new option to the "slide" parameter: "-2" will also slide accross SysFolders. So the "-1" would be unaffected by the change.

Actions #22

Updated by Henrik Ziegenhain about 10 years ago

Good point, Ernesto

Actions #23

Updated by Jo Hasenau about 10 years ago

Sounds reasonable. +1

Actions #24

Updated by Benjamin Robinson almost 10 years ago

I have opened a new issue "groupe pages – show subpages of SPC in menu" https://forge.typo3.org/issues/64428 and think it is related to this one, by now. We started to discused if a new pagetype for grouping is necessary, sysfolders should be used (maybe renamed to just "folders") or if the spacer-page should be renamed and be used for spaces and groups ... Anyway, the use of each pagetype needs to be clearly defined and grouping pages (incl. slide-functionality) should be one of those use-cases; otherwise everybody is struggling with workarounds.
If we find a good solution, there won't be a need to abuse any page-type for grouping pages and so we maybe wouldn't need slide-functionality here. What do you think?

Actions #25

Updated by Andreas Allacher almost 10 years ago

Actually, I understand that the sliding functionality might skip content from the sysfolder.
However, I don't think it should stop there, e.g. there could still be a normal page afterward.

But I guess with the group idea this would be fixed too.

Actions #26

Updated by Susanne Moog about 7 years ago

  • Category set to Frontend
Actions #27

Updated by Susanne Moog about 7 years ago

  • Related to Feature #20933: Enable working with SysFolders in CONTENT added
Actions #28

Updated by Clemens Riccabona almost 6 years ago

Wow. Still in progress, it seems ... ;)

Actions #29

Updated by Michael Sollmann about 5 years ago

Any news on this?

Actions #30

Updated by Lina Wolf about 5 years ago

  • TYPO3 Version changed from 4.1 to 9
  • PHP Version changed from 4.3 to 7.1

Still having the Problem on LTS 9. Any plan to integrate it?

Actions #31

Updated by Urs Braem almost 5 years ago

Just stumbled over this. So a +1 from me

Actions #32

Updated by Dmitry Dulepov almost 5 years ago

I also got a problem with this :( +1 for changing this. We have a content on the root page for the footer. It must appear on all subpages. Some pages (like 404 or sitemap) are in a folder (they should not be editable by normal backend users). And they do not show content for the footer because of this strange restriction.

Actions #33

Updated by Eugène Fritz over 4 years ago

i have the same issue, +1

My fix, Im using the menu separator, but a folder would be better.

if the Behaviour could be defined through the config, it would be great.

The reason why I don't want to use normal pages is that they appear in the slug and there is no possibility to exclude it from speaking URL like RealUrl did it!
I then have to adjust the slug manually from /footer-meta/sitemap to /sitemap.

Actions #34

Updated by christian rauch over 4 years ago

Haha

Same, also just stumbled upon this... Would be nice if content would also slide through sys folders

Actions #35

Updated by Gerrit Code Review over 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64038

Actions #36

Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64038

Actions #37

Updated by Gerrit Code Review over 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64038

Actions #38

Updated by Gerrit Code Review over 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64038

Actions #39

Updated by Benni Mack over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #40

Updated by Christian Eßl over 4 years ago

  • Related to Task #90947: Lift doktype restrictions in SlugHelper::resolveParentPageRecord added
Actions #41

Updated by Christian Eßl over 4 years ago

  • Related to Bug #90975: Fix typo in doktype check added
Actions #42

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions #43

Updated by Peter Reichenbach over 4 years ago

Done for TYPO3 10.

Actions #44

Updated by Benoit Chenu almost 4 years ago

  • Related to Bug #92762: Accessing a restricted subpage of a sysfolder triggers a 404 instead of 403 added
Actions #45

Updated by Mathias Brodala over 3 years ago

  • Related to Story #94430: pages.doktypes higher than 200 do not work properly as frontend pages added
Actions #46

Updated by Stefan Bürk almost 3 years ago

  • Related to Feature #96366: Stop on additional bad doktypes for ContentObject slide added
Actions

Also available in: Atom PDF