Feature #19856
closedFeature wanted: Setting special ATagParams for links to access restricted pages
100%
Description
Problem: If you want to show links to access restricted pages, be that in bodytext or you might want to inform your users that a login is required by setting an appropriate class and title attribute.
Therefore it would be nice to have special ATagParams at hand for these cases:
For normal links:
config.typolinkLinkAccessRestrictedPages.ATagParams
For menus
[MenuObject].showAccessRestrictedPages.ATagParams
Uschi
(issue imported from #M10187)
Updated by Simon Schaufelberger over 13 years ago
this is a nice missing feature!
Updated by Xavier Perseguers over 13 years ago
- Category deleted (
Communication) - Target version deleted (
4.6.0-beta1)
Updated by Alexander Opitz over 11 years ago
- Status changed from Accepted to Needs Feedback
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Simon Schaufelberger over 11 years ago
Nothing has changed here. what do you mean with "more like you expect it"? this is still a feature request!
Updated by Alexander Opitz over 11 years ago
- Status changed from Needs Feedback to New
Updated by Viktor Livakivskyi almost 11 years ago
Voting up!
Another use case: client wants to show the access restricted pages in menu, but clicking on them must show login popup, therefore we need to add onclick="displayLoginForm(); return false;" to such links and there is no way to do this. Currently we do it by dirty XCLASSing of \TYPO3\CMS\Frontend\ContentObject\Menu\TextMenuContentObject
TYPO3 6.0
Btw, onclick event can be added very easy by following line at the end of \TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject -> changeLinksForAccessRestrictedPages():
// add onclick event $LD['onClick'] = $this->mconf['showAccessRestrictedPages.']['onClick'];
And changing this line at \TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject -> link():
$list['onClick'] = $onClick;
to
// add onclick event, if it was supplied $list['onClick'] = $onClick ?: htmlspecialchars($LD['onClick']);
Updated by Mathias Schreiber almost 10 years ago
- Assignee deleted (
Oliver Hader) - Target version set to 7.2 (Frontend)
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Gerrit Code Review about 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76534
Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76534
Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76534
Updated by Gerrit Code Review over 1 year ago
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78165
Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78165
Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78165
Updated by Benni Mack over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 307bd4d90209f520a3b003e2340c4a7e2bc5dff9.