Skip to content

Instantly share code, notes, and snippets.

@kitzberger
Last active November 22, 2017 13:41
Show Gist options
  • Save kitzberger/acfc630c0ea9a430c875af3fbe79a724 to your computer and use it in GitHub Desktop.
Save kitzberger/acfc630c0ea9a430c875af3fbe79a724 to your computer and use it in GitHub Desktop.
TYPO3 8.7: Workaround for broken rel attribute of lightbox links
# Workaround for broken rel attribute of lightbox links in TYPO3 8.7
# See https://forge.typo3.org/issues/72779
lib.contentElement.variables.10 = LOAD_REGISTER
lib.contentElement.variables.10.content_uid = TEXT
lib.contentElement.variables.10.content_uid.field = uid
lib.contentElement.settings.media.popup.linkParams.ATagParams.dataWrap = class="{$styles.content.textmedia.linkWrap.lightboxCssClass}" rel="{$styles.content.textmedia.linkWrap.lightboxRelAttribute}[{register:content_uid}]"
lib.contentElement.stdWrap.append = RESTORE_REGISTER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment