Maybe not very right subject, but I don't know how to describe tye problem better.
I have several catalogs that are corresponding to each other.
For example, item of main catalog can have several draws, that are stored in another catalog, and I need to view this draws from main catalog item, and then click on it and open this draws with ability to download.
Everything is perfect, but I need to view the thumbs.
And becouse I get the image frem ref, Contao doesn-t generate it:
Code:
Array
(
[0] => Array
(
[id] => 4
[catalog_name] => ???????
[parentJumpTo] => 3
[tablename] => cat_profiles
[showLink] => 1
[class] => first last even
[data] => Array
(
[draws] => Array
(
[label] => ???????
[type] => tags
[raw] => 1,2
[value] => ?????? 1, ?????? 2
[ref] => Array
(
[1] => Array
(
[id] => 1
[pid] => 3
[sorting] => 128
[tstamp] => 1281693831
[name] => ?????? 1
[pict] => tl_files/draws/draw1.png
[file] => tl_files/draws/English Figure 01 Gerard Classic Tile Rev C.pdf
[parentJumpTo] => 0
[parentLink] => View the item details
[parentUrl] => profiles-and-colors/items/1.html
)
[3] => Array
(
[id] => 2
[pid] => 3
[sorting] => 256
[tstamp] => 1281693848
[name] => ?????? 2
[pict] => tl_files/draws/draw2.png
[file] => tl_files/draws/English Figure 02 Gerard Heritage Tile Rev C.pdf
[parentJumpTo] => 0
[parentLink] => View the item details
[parentUrl] => profiles-and-colors/items/2.html
)
)
)
)
)
)
I get big images like this:
Code:
<?php foreach ($this->entries[0]['data']['draws']['ref'] as $entry): ?>
[img]<?php echo $entry[pict]; ?>[/img]
<?php endforeach; ?>
But how to make thumbs?
I've tried to use $this->getImage, but nothing works.
What shall I do?
Thank you
Bookmarks