slug icon indicating copy to clipboard operation
slug copied to clipboard

Partial "GooglePreview" missing in v2

Open jonastemmen opened this issue 5 years ago • 6 comments

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.

jonastemmen avatar Jan 02 '20 15:01 jonastemmen

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

froemken avatar Jan 26 '20 10:01 froemken

use v3 within TYPO3v9.5 ?

TrueType avatar Jan 28 '20 17:01 TrueType

well v2.0.1 has this partial..

TrueType avatar Jan 28 '20 18:01 TrueType

Sorry guys, it will be back in the next version. I am working on it whenever I have time.

koehlersimon avatar Jan 29 '20 04:01 koehlersimon

the file is still missing :( But only when installing slug via composer. Please update

Joe1am avatar May 20 '20 16:05 Joe1am

GooglePreview partial is still missing in 2.0.2.

localhorst avatar Aug 20 '20 13:08 localhorst