[TYPO3-mvc] How to use FAL?

Tobias Liegl tliegl at gmail.com
Mon Jul 15 10:25:20 CEST 2013


Hi Bernd,

maybe this article (and the link to the gist) helps you:
http://buzz.typo3.org/teams/extbase/article/fal-and-extbase-the-easy-part/
https://gist.github.com/maddy2101/5668835

Tobi


Am 15.07.13 10:04, schrieb bernd wilke:
> I need to use FAL in tx_news but did not get it to work.
>
> so tx_news is in MVC structure it does not use FAL (yet), but copies
> files to upload/tx_news.
>
> As I need FAL to get images from an external imageserver I enhanced
> tx_news with additional FAL fields which should replace the existing
> fields to uploads/tx_news.
>
> what is working:
> in the BE an editor can insert files via FAL and the relations are
> stored to the DB. As these relations are visible on the next edit the
> information is stored.
>
> for the FE I got no clue how to get these files to display.
> I tried different approaches in myext/Classes/Domain/Model/News.php for
> function getAddImgs() (add_imgs should replace additional_images)
>
> and all I get is (from fluid-debug):
>
>       addImgs =>
> TYPO3\CMS\Extbase\Domain\Model\FileReferenceprototypepersistent entity
> (uid=34, pid=781)
>           fileRepository =>
> TYPO3\CMS\Core\Resource\FileRepositorysingletonobjectsee above
>           originalResource => NULL
>           uid => 34 (integer)
>           _localizedUid => 34 (integer)modified
>           _languageUid => 0 (integer)modified
>           pid => 781 (integer)
>
> bernd



More information about the TYPO3-project-typo3v4mvc mailing list