[FEATURE] Add ATagParams option to links of restricted pages
A new TypoScript option is introduced to allow to set additional tag attributes to links of pages which are access restricted but link to a login page. This works globally for a page, but also for HMENUs. Globally: config.typolinkLinkAccessRestrictedPages.ATagParams = class="restricted" for HMENUs: page.10 = HMENU page.10.showAccessRestrictedPages = 13 page.10.showAccessRestrictedPages.ATagParams = class="access-restricted" Resolves: #19856 Releases: main Change-Id: I21acdb1ef3290491291acb647c164bcfcee1837f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78165 Tested-by:Jochen <rothjochen@gmail.com> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Jochen <rothjochen@gmail.com> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de>
Showing
- typo3/sysext/core/Documentation/Changelog/12.3/Feature-19856-SetSpecialATagParamsForLinksToAccessRestrictedPages.rst 55 additions, 0 deletions...6-SetSpecialATagParamsForLinksToAccessRestrictedPages.rst
- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php 4 additions, 0 deletions.../Classes/ContentObject/Menu/AbstractMenuContentObject.php
- typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php 46 additions, 28 deletionstypo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
- typo3/sysext/frontend/Tests/Functional/SiteHandling/AbstractTestCase.php 11 additions, 0 deletions...ontend/Tests/Functional/SiteHandling/AbstractTestCase.php
- typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugLinkGeneratorTest.php 28 additions, 25 deletions...d/Tests/Functional/SiteHandling/SlugLinkGeneratorTest.php
Please register or sign in to comment