Hello,
since I was not satisfied by the solution suggested in FAQ, I apply the following change to the file
categories.php
for showing always the same thumbnail in categories view (the first one) instead the default image (folder).
function _getRandomImageRecursive($categoryid)
{
// 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);
Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Random image in categories view
Phoca Gallery - image gallery extension
Jump to
- Joomla! Components
- ↳ Phoca Cart
- ↳ Phoca Gallery
- ↳ Phoca Download
- ↳ Phoca Restaurant Menu
- ↳ Phoca Guestbook
- ↳ Phoca Photo
- ↳ Phoca PDF
- ↳ Phoca Documentation
- ↳ Phoca Maps
- ↳ Phoca Commander
- ↳ Phoca Email (Newsletter)
- ↳ Phoca SEO
- ↳ Phoca Mosaic
- ↳ Phoca AI
- ↳ Phoca Favicon
- ↳ Phoca Panorama
- ↳ Phoca Font
- ↳ Phoca Install
- ↳ Phoca SEF
- Joomla! Modules
- ↳ Phoca Gallery Modules
- ↳ Phoca Modules
- Joomla! Plugins
- ↳ Phoca Gallery Plugins
- ↳ Phoca Plugins
- Joomla! Addons
- ↳ VirtueMart Addons And Themes
- Joomla! Templates
- ↳ Phoca Templates
- Joomla! Tools
- ↳ Phoca Tools
- Free Scripts
- ↳ Phoca Free Scripts
- General Forums
- ↳ General Forum
- ↳ Translations
- ↳ Moderator Forum
- Development
- ↳ Phoca Gallery Development
- ↳ Phoca Guestbook Development
