Commit 7e278c20 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen
Browse files

Merge branch '227-extend-extension-data-with-schema-tags' into 'develop'

Resolve "Extend extension data with schema tags"

Closes #227

See merge request !225
parents b8aae07c f958d953
Pipeline #2303 passed with stages
in 3 minutes and 10 seconds
...@@ -5,10 +5,13 @@ ...@@ -5,10 +5,13 @@
<dt> <dt>
<f:translate key="author" /> <f:translate key="author" />
</dt> </dt>
<dd>{extension.lastVersion.author.name}</dd> <dd itemprop="creator" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">{extension.lastVersion.author.name}</span>
</dd>
</f:if> </f:if>
<dt>Last update</dt> <dt>Last update</dt>
<dd> <dd>
<span hidden itemprop="dateCreated"><f:format.date format="c">@{extension.lastVersion.uploadDate}</f:format.date></span>
<f:format.date format="%d. %b %Y">@{extension.lastVersion.uploadDate}</f:format.date> <f:format.date format="%d. %b %Y">@{extension.lastVersion.uploadDate}</f:format.date>
</dd> </dd>
<dt> <dt>
...@@ -26,7 +29,7 @@ ...@@ -26,7 +29,7 @@
<dt> <dt>
<f:translate key="category" /> <f:translate key="category" />
</dt> </dt>
<dd> <dd itemprop="applicationSubCategory">
<f:if condition="{extension.lastVersion.emCategory}"> <f:if condition="{extension.lastVersion.emCategory}">
<f:then> <f:then>
<f:translate key="category_{extension.lastVersion.emCategory}" /> <f:translate key="category_{extension.lastVersion.emCategory}" />
......
<html xmlns:terfe2="http://typo3.org/ns/T3o/TerFe2/ViewHelpers" xmlns:tl="http://typo3.org/ns/T3o/T3olayout/ViewHelpers"> <html xmlns:terfe2="http://typo3.org/ns/T3o/TerFe2/ViewHelpers" xmlns:tl="http://typo3.org/ns/T3o/T3olayout/ViewHelpers" xmlns:f="http://www.w3.org/1999/html">
<f:layout name="Default" /> <f:layout name="Default" />
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
<h4>Owner of this extension</h4> <h4>Owner of this extension</h4>
<p> <p>
<strong>Name:</strong> {owner.name}<br> <strong>Name:</strong> {owner.name}<br>
<strong>Email:</strong> <f:link.email email="{owner.email}">{owner.email}</f:link.email><br> <strong>Email:</strong>
<f:link.email email="{owner.email}">{owner.email}</f:link.email>
<br>
<strong>Username:</strong> {owner.username} <strong>Username:</strong> {owner.username}
</p> </p>
</div> </div>
...@@ -36,14 +38,23 @@ ...@@ -36,14 +38,23 @@
</div> </div>
</f:if> </f:if>
<div itemscope itemtype="http://schema.org/SoftwareApplication">
<div hidden itemprop="applicationCategory">TYPO3 Extension</div>
<div hidden itemprop="applicationSuite">TYPO3</div>
<div hidden itemprop="downloadUrl">
<f:uri.action action="download" absolute="1" controller="Extension" arguments="{extension: extension}" />
</div>
<div hidden itemprop="fileFormat">application/zip</div>
<div hidden itemprop="operatingSystem">Windows,Linux,MacOS</div>
<div class="row mt-3 align-items-center"> <div class="row mt-3 align-items-center">
<div class="col-md-9"> <div class="col-md-9">
<header> <header>
<h1> <h1>
<terfe2:extensionIcon version="{extension.lastVersion}" alt="{extension.lastVersion.title}" class="ter-ext-icon" /> <terfe2:extensionIcon version="{extension.lastVersion}" alt="{extension.lastVersion.title}" class="ter-ext-icon" />
{extension.lastVersion.title} <span itemprop="alternateName">{extension.lastVersion.title}</span>
<small class="text-muted"> <small class="text-muted">
<br />{extension.extKey} / <br /><span itemprop="name">{extension.extKey}</span> /
<span class="ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span> <span class="ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span>
</small> </small>
</h1> </h1>
...@@ -52,7 +63,7 @@ ...@@ -52,7 +63,7 @@
<div class="col-md-3"> <div class="col-md-3">
<f:if condition="{extension.lastVersion.reviewState} != -1"> <f:if condition="{extension.lastVersion.reviewState} != -1">
<f:link.action class="btn btn-primary btn-lg pull-right" controller="Extension" action="download" arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 'zip'}"> <f:link.action class="btn btn-primary btn-lg pull-right" controller="Extension" action="download" arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 'zip'}">
<strong>Download {extension.lastVersion.versionString}</strong> <strong>Download <span itemprop="softwareVersion">{extension.lastVersion.versionString}</span></strong>
</f:link.action> </f:link.action>
</f:if> </f:if>
</div> </div>
...@@ -60,7 +71,7 @@ ...@@ -60,7 +71,7 @@
<div class="row mb-3"> <div class="row mb-3">
<div class="col-md-8"> <div class="col-md-8">
<p>{extension.lastVersion.description}</p> <p itemprop="description">{extension.lastVersion.description}</p>
<h3> <h3>
<f:render partial="VersionSupportForTypo3" arguments="{version: extension.lastVersion}" /> <f:render partial="VersionSupportForTypo3" arguments="{version: extension.lastVersion}" />
</h3> </h3>
...@@ -68,14 +79,17 @@ ...@@ -68,14 +79,17 @@
<h3>Tags</h3> <h3>Tags</h3>
<p class="tags"> <p class="tags">
<f:for each="{extension.tags}" as="tag"> <f:for each="{extension.tags}" as="tag">
<f:link.page class="btn btn-info mb-1" pageUid="{settings.pages.searchResultsPid}" additionalParams="{tx_solr: {filter: {0: 'tags:{tag.title}'}}}"><strong>#{tag.title}</strong></f:link.page> <f:link.page class="btn btn-info mb-1" pageUid="{settings.pages.searchResultsPid}" additionalParams="{tx_solr: {filter: {0: 'tags:{tag.title}'}}}">
<strong>#{tag.title}</strong>
</f:link.page>
</f:for> </f:for>
</p> </p>
<div hidden itemprop="keywords"><f:for each="{extension.tags}" as="tag" iteration="it">{tag.title}<f:if condition="{it.isLast}"><f:else>,</f:else></f:if></f:for></div>
</f:if> </f:if>
<h3> <h3>
<f:translate key="last_upload_comment" /> <f:translate key="last_upload_comment" />
</h3> </h3>
<p> <p itemprop="releaseNotes">
<f:format.nl2br>{extension.lastVersion.uploadComment}</f:format.nl2br> <f:format.nl2br>{extension.lastVersion.uploadComment}</f:format.nl2br>
</p> </p>
<f:if condition="{versionHistory->f:count()} >= 1}"> <f:if condition="{versionHistory->f:count()} >= 1}">
...@@ -109,7 +123,7 @@ ...@@ -109,7 +123,7 @@
</f:if> </f:if>
<div class="socialshareprivacy"></div> <div class="socialshareprivacy"></div>
</div>
<f:link.page pageUid="1" class="btn btn-success mb-3"> <f:link.page pageUid="1" class="btn btn-success mb-3">
<strong> <strong>
<f:translate key="back_to_extension_list" /> <f:translate key="back_to_extension_list" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment