[FLOW3-general] ResourceManager: ViewHelper and StorageBaseUri
Julian Kleinhans
typo3 at kj187.de
Mon Jan 18 21:47:06 CET 2010
Hi,
if i call the ResourceManager->importResource direct, the image stores
in Data/Persistance/Resources/ but NOT in the public folder
_Resouces/Persistent/. So i can't use it in the frontend
[...]
$imageModel =
$this->objectFactory->create('F3\Tutorials\Domain\Model\Image');
$imageModel->setTitle('Test');
$imageModel->setOriginalResource($this->recourceManager->importResource('/Users/jk/Desktop/IMG_2474.jpg'));
[...]
if i use the way over the form upload in the frontend it works!
any idea ?
i use the latest svn version 3669
cheers
julian
Am 11.01.10 13:22, schrieb Julian Kleinhans:
> Hi Robert,
>
> good to know! Thanks!
> I will wait for alpha7
>
> cheers,
> julian
>
>
> Am 11.01.2010 10:13, schrieb Robert Lemke:
>> Hey Julian,
>>
>> just a sidenote: you're using a feature which is part of the next
>> release (alpha7) so there still might be some oddities in there. I
>> already wrote most of the documentation for the resource mgm and file
>> upload features. The updated manual will be released together with
>> alpha7.
>>
>> I guess things will become more clear once we have all that released.
>>
>> Cheers,
>> robert
>>
>> Am 09.01.2010 um 15:48 schrieb Julian Kleinhans:
>>
>>> Hi list,
>>>
>>> at the moment i code an importer where i use the ResourceManager to
>>> import some images.
>>>
>>> Here is a little code snippet
>>>
>>> [...]
>>> $resource =
>>> $this->recourceManager->importResource('http://www.domain.de/image.gif);
>>>
>>> $image = $this->objectFactory->create('F3\PACK\Domain\Model\Image');
>>> $image->setOriginalResource($resource);
>>>
>>> $tutorialModel->setResultImage($image);
>>> [...]
>>>
>>>
>>> Now i have two questions:
>>> To output the image i use the viewHelper
>>>
>>> <img src="{f:uri.resource(object: {tutorial.resultImage})}" />
>>>
>>> the problem is, that this string is not replaced by fluid.. it is
>>> output the raw string .. is this a bug or do i something wrong ??
>>>
>>> The next question is .. is there any possibility to change the
>>> persistentResourcesStorageBaseUri ?
>>>
>>>
>>> thanks and greetz
>>> julian
>>>
>>> --
>>> Julian Kleinhans
>>> Certified TYPO3 Integrator
>>> email: typo3 at kj187.de
>>> web: http://www.typo3-tutorials.org
>>>
>>> Xing: http://www.xing.com/profile/Julian_Kleinhans
>>> Twitter: http://twitter.com/kj187
>>> _______________________________________________
>>> FLOW3-general mailing list
>>> FLOW3-general at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>>
>
--
Julian Kleinhans
Certified TYPO3 Integrator
email: typo3 at kj187.de
web: http://www.typo3-tutorials.org
Xing: http://www.xing.com/profile/Julian_Kleinhans
Twitter: http://twitter.com/kj187
More information about the FLOW3-general
mailing list