[TYPO3-english] BackendUtility::getThumbNail

Alessandro Tuveri at at uniud.it
Thu Jul 31 11:02:43 CEST 2014


Forgive me
I need to update a BE module (very simple) to v.6.2.4 but I cannot find some docs about this.
I inspected some code into typo3/sysext folder, but it is a bit complex.
Previous legacy structure was mod*/

there is some code to put but this is deprecated, similar to

mod1/index.php

i found this code...

$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\MODULE_KEY\\Controller\\PageMyresourcesControll
er');
$SOBE->init();
(...)

and a mod1/config.php file

I can't figure the alternative way to register the module within EXTENSION MANAGER

thank you very much for you help

ALEX



but several BE module are using a different
________________________________________
Da: typo3-english-bounces at lists.typo3.org <typo3-english-bounces at lists.typo3.org> per conto di Markus Klein <klein.t3 at reelworx.at>
Inviato: giovedì 31 luglio 2014 10:54
A: 'TYPO3 English'
Oggetto: Re: [TYPO3-english] BackendUtility::getThumbNail

Hi Christian,

there are some known issues with this function, unfortunately no fix yet.

https://forge.typo3.org/issues/59215
https://forge.typo3.org/issues/50301


Kind regards
Markus

------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of Christian Tauscher
> Sent: Thursday, July 31, 2014 10:43 AM
> To: typo3-english at lists.typo3.org
> Subject: [TYPO3-english] BackendUtility::getThumbNail
>
> Good morning.
>
> I have writte a backendmodule (up since years).
>
> Now I switch over to 6.1/6.2.
>
> In mod1 the DB-Content along with the image is shown.
> The old (4.x) getThumbNail-function call was broken, so I googeled this
> call:
>
>
> return \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbNail(
>       $this->doc->backPath . 'thumbs.php',
>       $uploadfolder.$theFile,
>       'hspace="5" vspace="5" border="1"',
>       '100x50'
> );
>
>
> all the path is correct so far.
>
> $this->doc->backPath.'thumbs.php' ist the relative path from EXT:mod1
> (shuould be OK)
>
> $uploadfolder.$theFile ist the absolute path to te image (Proofed!)
>
>
> But the image is not rendered: questionmark on grey back with "input file is
> not found..." rendered on it
>
> installtool is checked an OK. Image Redering Proofed OK.
>
>
> Exaple output:
> <img vspace="5" hspace="5" border="1" alt="" title="TheTitle"
> src="../../../../typo3/thumbs.php?&file=%2Fvar%2Fwww%2Fhtdocs%2Ftmd
> %2Fkino%2Fuploads%2Ftx_tmdmovie%2FDSIEMV_Poster_Startdatum_1400
> .jpg&md5sum=e4ef047fd3ce681d240d181cedd8d4fd">
>
> If I call the scr-path in my Browser (reltive to mod1) I get this:
>
> Fatal error: Namespace declaration statement has to be the very first
> statement in the script in /var/www/htdocs/typo3_src-
> 6.1.10/typo3/sysext/backend/Classes/View/ThumbnailView.php
> on line 2
>
>
> No clue what this means or if this helps.
>
> #-(
>
> Can you help in this task?
>
> Thank you a lot,
>
> Christian.
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list