cabi / microformat
Add microformats to your page.
Installs: 222
Dependents: 0
Suggesters: 2
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: >=5.5.0
- typo3/cms-core: ~6.2.0||~7.6.0||<8.99.99||dev-master
Requires (Dev)
- namelesscoder/typo3-repository-client: 1.2.0
- phpmd/phpmd: ^2.4
- phpunit/phpunit: ~4.8.0
- scrutinizer/ocular: ^1.3.0
- squizlabs/php_codesniffer: ^2.6
Replaces
- microformat: 0.0.8
- typo3-ter/microformat: 0.0.8
This package is not auto-updated.
Last update: 2024-11-09 20:01:53 UTC
README
Example
fluid-template
{namespace m=HDNET\Microformat\ViewHelper}
<m:format.jsonLd showInHead="1" jsonPrettyPrint="1">
<m:microformat.event name="Tanz in den Mai" description="Tolle Tanzveranstaltung mit netten Menschen." url="http://domaine.de/tanz-in-den-mai.html" location="Festzelt auf dem Marktplatz" isAccessibleForFree="true">
<m:microformat.imageObject key="image" caption="Bild 1" url='http://domaine.de/bild1.jpg'></m:microformat.imageObject>
<m:microformat.imageObject key="image" caption="Bild 2" url='http://domaine.de/bild2.jpg'></m:microformat.imageObject>
<m:microformat.imageObject key="image" caption="Bild 3" url='http://domaine.de/bild3.jpg'></m:microformat.imageObject>
</m:microformat.event>
</m:format.jsonLd>
output in the html
<script type="application/ld+json">
{
"image": [
{
"@context": "http://schema.org",
"@type": "ImageObject",
"url": "http://domaine.de/bild1.jpg",
"caption": "Bild 1"
},
{
"@context": "http://schema.org",
"@type": "ImageObject",
"url": "http://domaine.de/bild2.jpg",
"caption": "Bild 2"
},
{
"@context": "http://schema.org",
"@type": "ImageObject",
"url": "http://domaine.de/bild3.jpg",
"caption": "Bild 3"
}
],
"@context": "http://schema.org",
"@type": "Event",
"description": "Tolle Tanzveranstaltung mit netten Menschen.",
"name": "Tanz in den Mai",
"url": "http://domaine.de/tanz-in-den-mai.html",
"isAccessibleForFree": true,
"location": "Festzelt auf dem Marktplatz"
}
</script>```