Page 1 of 1

phoca download tree: category order

Posted: 10 May 2019, 08:49
by rnervi
I've settled the PhocaDownload -> control panel -> options -> display -> Categories and Category View -> Category Ordering = Title ascending BUT the module doesn' t care.... categories are showed in "id key" from table.....

Re: phoca download tree: category order

Posted: 10 May 2019, 09:12
by rnervi
ach. in the file modules/mod_phocadownload_tree the db select is hard coded, this the ORDER BY is not variable.... :( :

$query = 'SELECT cc.title AS text, cc.id AS id, cc.parent_id as parentid, cc.alias as alias, cc.access as access, cc.accessuserid as accessuserid'
. ' FROM #__phocadownload_categories AS cc'
. ' WHERE cc.published = 1'
//. ' AND cc.approved = 1'
. $hideCatSql
. $hideCatAccessSql
. ' ORDER BY cc.ordering';

so it's enough set the "ordering" field in the table.

Re: phoca download tree: category order

Posted: 11 May 2019, 10:41
by Jan
Hi, thank you for the info, I will take a look at it for the next version.

Jan

Re: phoca download tree: category order

Posted: 17 Apr 2020, 22:54
by Jan
Hi, set in version 3.2.0
viewtopic.php?f=32&t=59880&p=156313#p156294
Jan