[TYPO3-project-formidable] How to use IMAGE renderlet to display an image saved in database?

Manuel Rego Casasnovas mrego at igalia.com
Fri Jun 22 13:17:31 CEST 2007


Hi Jerome,

I've used activelistable but the image doesn't show.

I think that the problem is in the IMAGE renderlet clase:
function _renderReadOnly() {

        $sPath = $this->_getPath();

        if($sPath !== FALSE) {
...

The path is empty.
I don't put the path in my XML config because I want that the renderlet
get this value from my database.

I think that can be a good idea somegthing like:
function _renderReadOnly() {

        $sPath = $this->_getPath();

        $sPath = $sPath . $this->_getValue();

        if($sPath !== FALSE) {
...

I don't know if this is a good idea or not.

Thanks,
   Rego


-- 
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com


Jerome Schneider escribió:
> Hello manuel,
>
> could you try to add activelistable="true" to your renderlet:IMAGE ?
>
> like this:
>
> <renderlet:IMAGE activelistable="true">
>    <!-- ... -->
> </renderlet:IMAGE>
>
> I think this will display image in the list
>
> Regards,
> Jerome Schneider
>
> Manuel Rego Casasnovas a écrit :
>   
>> Hello.
>>
>> I've a table in my database with a filed "image".
>> In this filed I save the path for this image, for example
>> 'uploads/my_image.jpg'.
>>
>> I want to show this image in a LISTER datahandler and I've tried to use
>> an IMAGE renderlet like:
>> <renderlet:IMAGE name="image">
>>      <imageconf>
>>          <userobj>
>>              <ts><![CDATA[
>>                 10 <
>> config.tx_ameosformidable.res.shared.xml.imageprocess.rounded
>>                 10.file.10.file < params.relwebpath
>>                 10.file.10.file.width = 100m
>>              ]]></ts>
>>          </userobj>
>>      </imageconf>
>> </renderlet:IMAGE>
>>
>> But this doesn't works.
>> I want to use an IMAGE renderlet because I want to use the typoscript
>> configuration.
>>
>> Can I use an IMAGE renderlet for this?
>>
>> Thank you very much,
>>    Rego
>>
>>     
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable


More information about the TYPO3-project-formidable mailing list