Project

General

Profile

Actions

Bug #63804

closed

typolink: "linkAccessRestrictedPages" is ignored when config.typolinkLinkAccessRestrictedPages is set

Added by IT-Steps24 GmbH over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-12-12
Due date:
% Done:

100%

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

Description

This Bug is already reported for the Typo3 4.6 Version. (#33059)

The typolink-function ignores the property "linkAccessRestrictedPages" when config.typolinkLinkAccessRestrictedPages is set.

For the typolink-property "linkAccessRestrictedPages" TSRef says:
"If set, typolinks pointing to access restricted pages will still link to the page even though the page cannot be accessed." With the global config property "typolinkLinkAccessRestrictedPages" you can influence the generated link on pages which can not be accessed at the moment. E.g. linking the loginform instead. But this should not be done if "linkAccessRestrictedPages" is set for a typolink.

For the moment it is not possible to force the generation of a link to an access-restricted page if the property "config.typolinkLinkAccessRestrictedPages". But this is needed for example for a redirect-url which points to an access-restricted page after login.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #33059: typolink: "linkAccessRestrictedPages" is ignored when config.typolinkLinkAccessRestrictedPages is setClosed2012-01-09

Actions
Related to TYPO3 Core - Bug #18778: Access restricted menu entries not linked at all when using "showAccessRestrictedPages = NONE"Closed2008-05-13

Actions
Actions #1

Updated by Steffen Müller over 9 years ago

  • Project changed from 1865 to TYPO3 Core
  • Category deleted (User interface)
  • Is Regression set to No

Moved to Core tracker.

Actions #2

Updated by Frederic Gaus over 9 years ago

Have you tried the patch of #33059?

Actions #3

Updated by Frederic Gaus over 9 years ago

  • Status changed from New to Accepted

Steps to reproduce:

Step1: Create an access restricted page

Step2: Create a normal page with a felogin on it. Configure felogin to redirect to the access restricted page ( of step 1) after login

Step3: Set this typoscript config

config.typolinkLinkAccessRestrictedPages = {$loginFormPIDOfStep1}
config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###

You won't be redirected to your access restricted page but to the page {$loginFormPID}. This is because the link is generated by "linkAccessRestrictedPages" by the felogin ext but this option is ignored if config.typolinkLinkAccessRestrictedPages is set.

Actions #4

Updated by Gerrit Code Review over 9 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 http://review.typo3.org/35908

Actions #5

Updated by Gerrit Code Review over 9 years ago

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

Actions #6

Updated by Gerrit Code Review over 9 years ago

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

Actions #7

Updated by Gerrit Code Review over 9 years ago

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

Actions #8

Updated by Gerrit Code Review over 9 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35908

Actions #9

Updated by Frederic Gaus over 9 years ago

For testing purposes a typoscript similar to this one could help:

config.admPanel = 1
config.typolinkLinkAccessRestrictedPages = 5
config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###

temp.linkTest = COA
temp.linkTest {
  10 = COA
  10 {
    10 = TEXT
    10.value = test1 
    10.typolink.parameter = 11
    10.typolink.returnLast = url

    15 = TEXT
    15.value = <br>

    20 = TEXT
    20.value = test2
    20.typolink.parameter = 11
    20.typolink.linkAccessRestrictedPages = 5
    20.typolink.returnLast = url
  } 
}

page = PAGE
page.10 < styles.content.get
page.5 < temp.linkTest
Actions #10

Updated by Gerrit Code Review over 9 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35908

Actions #11

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35923

Actions #12

Updated by Frederic Gaus over 9 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF