slug
slug copied to clipboard
Partial "GooglePreview" missing in v2
The partial file "GooglePreview.html" is missing in the 2.0.2. version (and in 2.0.1. too) But it's referenced in the template file "List.html" in line 113 - resulting in an exception.
Yes, it's a bug. Currently I solved it that way:
I have created an /ext_typoscript_setup.txt in my site-Extension:
# SF: Solve Bug in EXT:slug 2.0.2. GooglePreview.html Partial not found
module.tx_slug {
view {
templateRootPaths.0 = EXT:slug/Resources/Private/Templates/
templateRootPaths.1 = {$module.tx_slug.view.templateRootPath}
partialRootPaths.0 = EXT:slug/Resources/Private/Partials/
partialRootPaths.1 = EXT:my_sitepackage/Resources/Private/Extensions/Slug/Partials/
partialRootPaths.10 = {$module.tx_slug.view.partialRootPath}
layoutRootPaths.0 = EXT:slug/Resources/Private/Layouts/
layoutRootPaths.1 = {$module.tx_slug.view.layoutRootPath}
}
}
Then I copied content of version 3.0.* into GooglePreview.html in my site-package Partial directory:
<div class="google-preview">
<h3 class="main">
<f:if condition="{page.seo_title}">
<f:then>
<span title="field=seo_title">{page.seo_title}</span>
</f:then>
<f:else>
<span title="field=title">{page.title}</span>
</f:else>
</f:if>
</h3>
<div class="url">
<f:render partial="PageUrl" arguments="{page:page}"/>
</div>
<div class="text">
{page.description}
</div>
</div>
Works, but would be cool to have that in slug directly.
Stefan
use v3 within TYPO3v9.5 ?
well v2.0.1 has this partial..
Sorry guys, it will be back in the next version. I am working on it whenever I have time.
the file is still missing :( But only when installing slug via composer. Please update
GooglePreview partial is still missing in 2.0.2.