Project

General

Profile

Actions

Feature #19856

closed

Feature wanted: Setting special ATagParams for links to access restricted pages

Added by Uschi Renziehausen almost 16 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2009-01-19
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #56760: Menu: Add stdWrap to showAccessRestrictedPagesClosedJo Hasenau2014-03-11

Actions
Actions #1

Updated by Simon Schaufelberger over 13 years ago

this is a nice missing feature!

Actions #2

Updated by Xavier Perseguers over 13 years ago

  • Category deleted (Communication)
  • Target version deleted (4.6.0-beta1)
Actions #3

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?

Actions #4

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!

Actions #5

Updated by Alexander Opitz over 11 years ago

  • Status changed from Needs Feedback to New
Actions #6

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']);

Actions #7

Updated by Mathias Schreiber almost 10 years ago

  • Assignee deleted (Oliver Hader)
  • Target version set to 7.2 (Frontend)
Actions #8

Updated by Benni Mack over 9 years ago

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

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #10

Updated by Benni Mack about 9 years ago

  • Target version deleted (7.5)
Actions #11

Updated by Riccardo De Contardi over 8 years ago

  • Category set to TypoScript
Actions #12

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

Actions #13

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

Actions #14

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

Actions #15

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

Actions #16

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

Actions #17

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

Actions #18

Updated by Benni Mack over 1 year ago

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

Updated by Benni Mack 10 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF