Bug #17599

Frontend preview doesn't work for subpages of hidden and restricted pages

Added by Irene Höppner over 12 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2007-09-13
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Say you have the following page structure:
1 |--2 |--3 |--4 |--5

Page 2 is user restricted including the subpages and it is hidden.
Page 3 is neither hidden nor user restricted.
If you edit page 3 in the backend and then try to preview it in the frontend, you will see page 1 in the frontend.
If you hide page 3, you will see the preview in the frontend.

A preview of page 3 should be possible, even if it is not hidden.

(issue imported from #M6336)


Related issues

Related to TYPO3 Core - Bug #71519: Preview of disabled page not possible in 6.2.15 Closed 2015-11-12

History

#1 Updated by Administrator no-lastname-given over 12 years ago

I think you have activated 'extendToSubpages' on your page 1.

I have had the same Problem. I wonted, that the 'extendToSubpages' option should be disabled in preview.

So i changed the following:

class.tslib_fe.php

FROM
1056: if (!$this->checkPagerecordForIncludeSection($this->rootLine[$a]))

TO
1056: global $TSFE;
1056: if (!$TSFE->beUserLogin && !$this->checkPagerecordForIncludeSection($this->rootLine[$a]))

I dont't think, that this is a very good solution - but for me it works...

#2 Updated by Mathias Schreiber over 5 years ago

  • Description updated (diff)
  • Category deleted (Communication)
  • Target version changed from 0 to 7.2 (Frontend)
  • Is Regression set to No

#3 Updated by Riccardo De Contardi about 5 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Irene Höppner

Hi, I did a test on 6.2.12 and I think the bug is gone; here is my test:

1) I added a FE group "usergroup"
2) I set up a pagetree like this:

[1] Home page (root)
> [10] Page 1 (extend to subpage:yes)
>> [11] accessrestricted (hidden, access only to group "usergroup")
>>> [12] subpage

3) click on "subpage" > preview > the page viewed is actually "subpage"

Can I consider it closed, or should I perform a different test? Thank you!

#4 Updated by Benni Mack almost 5 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)

#5 Updated by Frederic Gaus almost 5 years ago

I tested this and this bug still exists in 6.2.13. @Riccardo: Please reproduce this bug in this way:

[1] Home page (root)

[10] Page 1 (hidden & extend to subpage:yes)

[12] subpage

Click on "subpage" -> show

You'll see the Home page (root). Instead of hiding "[10] Page 1" you can also add a usergroup.

#6 Updated by Riccardo De Contardi almost 5 years ago

you are correct, I tested with 6.2.14 the following scenario

[1] Home page (root)

[10] Page 1 (extend to subpage:yes, access only to group "usergroup")

[12] subpage

clicking on [12] and preview, the URL is index.php?id=12, but the page shown is the homepage.

#7 Updated by Susanne Moog almost 5 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#8 Updated by Benni Mack over 4 years ago

  • Target version deleted (7.5)

#9 Updated by Riccardo De Contardi over 4 years ago

  • Category set to Frontend
  • Status changed from Needs Feedback to New

#10 Updated by Riccardo De Contardi about 4 years ago

  • Assignee deleted (Irene Höppner)
  • TYPO3 Version changed from 4.1 to 6.2

This issue is still valid for 8.2-dev (latest master)

#11 Updated by Christian Kuhn about 3 years ago

i think that has been resolved with #66451

#12 Updated by Christian Kuhn about 3 years ago

  • Status changed from New to Closed

Also available in: Atom PDF