undkonsorten / typo3-pagetitle-ts
TYPO3 extension to access the final page title, built by the PageTitle API, within TypoScript
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ^7.1
- typo3/cms-core: ^9.5
- typo3/cms-frontend: ^9.5
Replaces
- pagetitle_ts: 1.0.2
This package is auto-updated.
Last update: 2024-12-05 23:32:33 UTC
README
TYPO3 extension pagetitle_ts
This TYPO3 CMS extension provides a TypoScript hook for getData()
. It allows
you to insert the final page title, built by the TYPO3 PageTitle API.
Installation
Composer:
composer require undkonsorten/typo3-pagetitle-ts
GitHub:
cd typo3conf/ext
git clone git@github.com:undkonsorten/typo3-pagetitle-ts.git pagetitle_ts
Usage
If your page object is named page
within TypoScript, you can include the page title as follows:
page.meta {
og:title {
data = pagetitle
stdWrap < config.pageTitle
replace = 1
}
twitter:title < .og:title
DC\.title < .og:title
og:title.attribute = property
}
Of course it's possible to use the date = pagetitle
configuration in each other context as well.