Commit 295e4ead authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Add basic search partial for extension result

parent 12f0c8d9
Pipeline #10629 passed with stages
in 7 minutes and 14 seconds
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<li class=""
data-document-score="{document.score}"
data-document-id="{document.id}"
data-document-url="{document.url}"
>
<div class="row">
<div class="col-12 mt-3">
<div class="card">
<div class="card-horizontal" style="display: flex;">
<div class="img-square-wrapper">
<a href="{s:uri.result.addSearchWordList(url:document.url, searchWords:resultSet.usedQuery.keywords)}">
<f:if condition="{document.media_intM}">
<f:then>
<f:image src="{document.media_intM.0}" width="300" />
</f:then>
<f:else>
<f:image src="EXT:t3org_layout/Resources/Public/Images/NewsDefaultImages/News_Dummy.svg" width="300" />
</f:else>
</f:if>
</a>
</div>
<div class="card-body" style="display: block;">
<h4 class="card-title">
<a href="https://{document.site}/{url}">
{document.title} ({document.extensionKey_string_S})
</a>
</h4>
<p class="card-text">
{document.content -> f:format.crop(maxCharacters:'200')}
</p>
<f:if condition="{document.typo3supportold_stringM} || {document.typo3supportelts_stringM} || {document.typo3support_stringM} || {document.typo3supportdev_stringS}">
<div>
<p class="col-sm-12">
<small>This extension supports TYPO3:</small><br>
<f:for each="{document.typo3supportold_stringM}" as="oldVersion">
<button class="btn btn-danger btn-sm mr-2" disabled title="{f:translate(key:'LLL:EXT:ter_fe2/Resources/Private/Language/locallang.xlf:title_danger', arguments: {0: oldVersion})}">{oldVersion}</button>
</f:for>
<f:for each="{document.typo3supportelts_stringM}" as="eltsVersion">
<button class="btn btn-warning btn-sm mr-2" disabled title="{f:translate(key:'LLL:EXT:ter_fe2/Resources/Private/Language/locallang.xlf:title_warning', arguments: {0: eltsVersion})}">{eltsVersion}</button>
</f:for>
<f:for each="{document.typo3support_stringM}" as="maintainedVersion">
<button class="btn btn-success btn-sm mr-2" disabled title="{f:translate(key:'LLL:EXT:ter_fe2/Resources/Private/Language/locallang.xlf:title_success', arguments: {0: maintainedVersion})}">{maintainedVersion}</button>
</f:for>
<f:if condition="{document.typo3supportdev_stringS}">
<button class="btn btn-info btn-sm" disabled title="{f:translate(key:'LLL:EXT:ter_fe2/Resources/Private/Language/locallang.xlf:title_info', arguments: {0: document.typo3supportdev_stringS})}">{document.typo3supportdev_stringS}</button>
</f:if>
</p>
</div>
</f:if>
<p class="card-text">
<a href="https://{document.site}/{url}" class="btn-primary">
Show extension details
</a>
<a href="https://{document.site}/{extensionDownloadZipUrl_stringS}" class="btn-primary">
Download ZIP of version {extensionVersion_stringS}
</a>
<f:if condition="{document.hasManual_boolS}">
<a href="{document.extensionDocumentationLink_stringS}" class="btn-secondary">
Extension documentation
</a>
</f:if>
</p>
</div>
</div>
<div class="card-footer">
<small class="text-muted">Last upload: {document.extensionLastUpload_intS -> f:format.date(format:'jS F Y')}</small>
<f:if condition="{document.author}">
<small class="text-muted"> by {document.author}</small>
</f:if>
</div>
</div>
</div>
</div>
</li>
</html>
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