Feature #19856

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

Added by Uschi Renziehausen almost 11 years ago. Updated over 3 years ago.

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

0%

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

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

History

#1 Updated by Simon Schaufelberger over 8 years ago

this is a nice missing feature!

#2 Updated by Xavier Perseguers about 8 years ago

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

#3 Updated by Alexander Opitz over 6 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 6 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 6 years ago

  • Status changed from Needs Feedback to New

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

#7 Updated by Mathias Schreiber over 4 years ago

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

#8 Updated by Benni Mack over 4 years ago

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

#9 Updated by Susanne Moog about 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#10 Updated by Benni Mack about 4 years ago

  • Target version deleted (7.5)

#11 Updated by Riccardo De Contardi over 3 years ago

  • Category set to TypoScript

Also available in: Atom PDF