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.
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.
- Project changed from 1865 to TYPO3 Core
- Category deleted (
User interface)
- Is Regression set to No
Have you tried the patch of #33059?
- 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.
- 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
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
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
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
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
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
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
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
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF