Feature #19856

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

Added by Uschi Renziehausen almost 12 years ago. Updated over 4 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


PHP Version:
Sprint Focus:


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:


For menus



(issue imported from #M10187)

Related issues

Related to TYPO3 Core - Feature #56760: Menu: Add stdWrap to showAccessRestrictedPages New 2014-03-11


#1 Updated by Simon Schaufelberger over 9 years ago

this is a nice missing feature!

#2 Updated by Xavier Perseguers about 9 years ago

  • Category deleted (Communication)
  • Target version deleted (4.6.0-beta1)

#3 Updated by Alexander Opitz over 7 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?

#4 Updated by Simon Schaufelberger over 7 years ago

Nothing has changed here. what do you mean with "more like you expect it"? this is still a feature request!

#5 Updated by Alexander Opitz over 7 years ago

  • Status changed from Needs Feedback to New

#6 Updated by Viktor Livakivskyi almost 7 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;

// add onclick event, if it was supplied
$list['onClick'] = $onClick ?: htmlspecialchars($LD['onClick']);

#7 Updated by Mathias Schreiber almost 6 years ago

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

#8 Updated by Benni Mack over 5 years ago

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

#9 Updated by Susanne Moog about 5 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#10 Updated by Benni Mack about 5 years ago

  • Target version deleted (7.5)

#11 Updated by Riccardo De Contardi over 4 years ago

  • Category set to TypoScript

Also available in: Atom PDF