Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S sg_cookie_optin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • TYPO3
  • sg_cookie_optin
  • Issues
  • #30
Closed
Open
Issue created Oct 29, 2019 by Stefan Galinski@sgalinski🎮Owner

Create proper footer menu urls for versions below TYPO3 8

		foreach ($this->getPagesFromNavigation($data['navigation'], $languageUid) as $pageData) {
			try {
				if (VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 8000000) {
					$footerLinks[] = [
						'url' => $uriBuilder->reset()
							->setCreateAbsoluteUri(FALSE)
							->setTargetPageUid($pageData['uid'])
							->setArguments(['disableOptIn' => TRUE])
							->buildFrontendUri(),
						'name' => $contentObject->crop($pageData['title'], 20 . '|...|0'),
					];
				} else {
					$footerLinks[] = [
						'url' => '/index.php?id=' . $pageData['uid'] . '&disableOptIn=1',
						'name' => $pageData['title'],
					];
				}
			} catch (\Error $exception) {
				// Occurs on the first creation of the translation.
				continue;
			}
		}
Assignee
Assign to
Time tracking