sudhaus7 / sudhaus7-viewhelpers
(Sudhaus7) Viewhelpers and other basics
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0
- typo3/cms-core: ^7.6.23 || ^8.7.10
- typo3/cms-fluid: ^7.6.23 || ^8.7.10
- typo3/cms-frontend: ^7.6.23 || ^8.7.10
Requires (Dev)
- helhum/typo3-composer-setup: ^0.5.1
- helmich/typo3-typoscript-lint: ^1.4.4
- nimut/testing-framework: ^3.0
- phpunit/phpunit: ^6.3.0
- roave/security-advisories: dev-master
- typo3/cms-fluid-styled-content: ^7.6.23 || ^8.7.10
Replaces
- sudhaus7_viewhelpers: 1.0.40
- 1.0.40
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.5
- 1.0.3
- 1.0.2
- 1.0.0
- dev-2591-newspagetemplate
- dev-2380-teaserboxen-mehrlink
- dev-2358-comment
This package is auto-updated.
Last update: 2024-11-08 00:42:02 UTC
README
This Extension provides a set of additional Viewhelpers and will add a hook to the RenderPostProcessHook facility of TYPO3. Additionally it will manage Metatags with the help of viewhelpers, automatically adding and overwriting Facebooks opengraph tags and others. It handles as well the generation of the cannonical URL. This makes this extension a mix of tools and seo optimizations
Usage
in your fluid template add this to the html-header: xmlns:s7="http://typo3.org/ns/SUDHAUS7/Sudhaus7Viewhelpers/ViewHelpers"
or inline: {namespace s7=SUDHAUS7\Viewhelpers\ViewHelpers}
Signal Slots
Classname: \SUDHAUS7\Sudhaus7Viewhelpers\Hooks\RenderPostProcessHook All slots expect its parameters returned wrapped in an array Slots:
- paramsAfterTitle - the whole page configuration after title generation. Parameters: $params
- metadataAfterImage - after guessing the image for example for og:image. Parameters: $params, $metaArray
- generateCannonical - chance to influence the cannonical URL. Parameter: $url
- newMetadata = array of the metadata to be set, wrapped in tags. Parameter: $newMeta
- finish = last chance to change $params. Parameter: $params, $metaArray
Markers
the Marker ###CANONICALURL### will be replaced with the generated cannonical URL throughout the Document.
Viewhelpers
Meta Viewhelper: <s7:meta key="" value="" auto="1"/>
for example:
<s7:meta key="title" value="my title" auto="1"/>
will create meta tags for the attribute title with the value of "my title". the auto feature will automatically create apporipriate tags for facebook, twitter and googleplus. valid keys for auto are: title,type (see og:type), description,image,site,published,modified,section,keywords other keys will be added literally as
<meta name="key" content="value"/>
more TODO