Tips & support for Web 2.0 design, web hosting and development
5 Jun
Here’s the hack of how to sort articles under sections module:
In the listarticle() function of the modules/Sections/index.php file, I believe you can change this code:
$result = $dbconn->Execute(”SELECT $column[artid], $column[secid], $column[title], $column[content], $column[counter]
FROM $pntable[seccont]
WHERE $column[secid]=’”.pnVarPrepForStore($secid).”‘ $querylang”);
to this:
$result = $dbconn->Execute(”SELECT $column[artid], $column[secid], $column[title], $column[content], $column[counter]
FROM $pntable[seccont]
WHERE $column[secid]=’”.pnVarPrepForStore($secid).”‘ $querylang ORDER BY $column[title]“);
Â
Â
Sphere: Related Content
Leave a reply