[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:28:25 CEST 2007


Hi,

the previous was only an idea, and it doesn't work.

I'd like to get the value from database in the IMAGE renderlet to add
this value to the path:

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


But $this->_getValue() returns an empty value;


Sorry ;-)

    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


Manuel Rego Casasnovas escribió:
> 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
>
>
>   


More information about the TYPO3-project-formidable mailing list