Giter Club home page Giter Club logo

backendpreviews's Issues

Bug: No TYPO3 version defined

The supported TYPO3 version isn't defined yet in composer.json, this makes it really hard in the future to have newer versions of b13/backendpreview to be limited to e.g. TYPO3 < v12.

Extension throws exception on missing TSconfig

When installing an activating the extension, following exception is thrown in the page module, in case the TSconfig was not yet included:

(1/1) TypeError Argument 1 passed to TYPO3\CMS\Fluid\View\AbstractTemplateView::setLayoutRootPaths() must be of the type array, null given, called in /var/www/html/typo3conf/ext/backendpreviews/Classes/Hooks/BackendPreviewRenderer.php on line 61

Issues overriding previewRenderer for textmedia, text, textpic and images

I have just tried your fabulous extension on an TYPO3 v12 installation. Great extension, as always! It just took me a little longer to find out why I can't overwrite the backend previews of the following ctypes: text, textmedia, textpic and images.

The reason is that in the TCA
vendor/typo3/cms-frontend/Configuration/TCA/tt_content.php explicit previewRenderers
are assigned to these ctypes:
'previewRenderer' => \TYPO3\CMS\Frontend\Preview\TextPreviewRenderer::class

I therefore had to explicitly overwrite the previewRenderer for these ctypes:
// override textmedia previewRenderer $GLOBALS['TCA']['tt_content']['types']['textmedia']['previewRenderer'] = \B13\Backendpreviews\Backend\Preview\StandardContentPreviewRenderer::class;

Is this the right way, or have I overlooked something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.