[TYPO3-mvc] How to use FAL?
bernd wilke
t3ng at bernd-wilke.net
Mon Jul 15 10:04:20 CEST 2013
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
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-project-typo3v4mvc
mailing list