[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TYPO3-dev] Access pictures added with foreign_table in plugin view


I am currently developing an extension which displays pictures on a page. I 
used Flexform to create the plugin configuration form:

<?xml version="1.0" encoding="UTF-8" ?>
 <meta type="array">
                  <label>Select the pictures you want to use for the background 
<!-- Deactivate text fields (title, desc,...) -->
                    <foreign_types type="array">
                        <numIndex index="2">
<!-- Only FILES of type GIF/JPG/PNG are allowed -->
                                                <label>Duration (in 

Now there's two problems:

1) (And that's strange) The first time using this form I was able to assign pictures. 
Then I re-installed the extension and created a new container for the plugin. When I add 
a picture now (which used to work perfectly fine!) they don't even have the 
"Info"-icon. When I save, I get the following error:

#1381590731: Metadata can only be retrieved for indexed files.
The only way to fix it is to open PMA and set the foreign_uid-field to the new 
dataset manually. Like I said, it worked before!

2) This is the main problem: I am trying to access my pictures with 
$this->settings['images'] in my controller action, but all it returns is the 
number of pictures assigned. How do I get the pictures that I assigned in the 

I appreciate any help! I really need this extension to work (and I also can't 
use other ready-made extensions which do the same thing as the one I'm trying 
to make)
TYPO3-dev mailing list
[email protected]