how to define a certain image as the gallery category image
Posted: 07 Mar 2009, 16:49
hello - we're having trouble with the fact that phocagallery choses random images that are being displayed for each category. we've found and implemented a fix that should change this image from random to "ASC" (which i guess means ascending based on the filename) - but that does not work either.
// We need to get a list of all phocagallery in the given category
$query = 'SELECT id, filename' .
' FROM #__phocagallery' .
' WHERE catid = '.(int) $categoryid.
' AND published = 1'.
' ORDER BY id ASC'; <<<<<-----------------------------------------
$images = $this->_getList($query, 0, 1);
we also read the FAQ:
read the FAQ: https://www.phoca.cz/documents/2-phoca-g ... ories_view
and we changed the files accordingly, but still the wrong files are being displayed. it should work so that the first file/image (file Nr. 1 within a category) should be displayed, right ?
has anyhone had the same problem ?
many thanks for your help
marc
// We need to get a list of all phocagallery in the given category
$query = 'SELECT id, filename' .
' FROM #__phocagallery' .
' WHERE catid = '.(int) $categoryid.
' AND published = 1'.
' ORDER BY id ASC'; <<<<<-----------------------------------------
$images = $this->_getList($query, 0, 1);
we also read the FAQ:
read the FAQ: https://www.phoca.cz/documents/2-phoca-g ... ories_view
and we changed the files accordingly, but still the wrong files are being displayed. it should work so that the first file/image (file Nr. 1 within a category) should be displayed, right ?
has anyhone had the same problem ?
many thanks for your help
marc