Accessing Groups in list view

I have a fileupload field named "bild" where i upload pictures.

I made my own detail template. To access the pictures i use this foreach which works great.
PHP:
    <ul id="lightSlider"> 

<?php foreach ($this->groups[Maschinen]->elements[bild]->value as $bild) { ?>
        <li data-thumb="<?php print $bild; ?>">
            <img src="<?php print $bild; ?>" />
        </li>
<?php } ?>  
        </ul>

Now i want to do the exact same on the list view template.
But there are no groups. How can i access the single pictures?

Thanks for any help
 
Use a layout override. See the wiki for info about element layout files. Short version ... copy ...

./plugins/fabrik_element/fileupload/layouts/fabrik-element-fileupload-image.php

... to either ...

./templates/<your site template>/html/layouts/com_fabrik

... if you want to override it for all lists, or ...

./components/com_fabrik/views/list/tmpl/<your list template>/layouts

... to just override it for that template. This layout enables you to modify the layout for each individual file.

If you are using AJAX uploading and want to modify how the multiple images are laid out, create a fabrik-element-fileupload-list.php file, which will have $layoutData->data, and array of each of the renders created by the image layout.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top