NewsListing Version 4.2
Minor bugfixes in relation to &datetype
Quote from: Mark at Dec 05, 2005, 09:53 PM
Please give feedback so that this version can be perfected for release with MODx9.1
I changed the following line to sort by publish date
$sortdir = isset($sortdir) ? strtoupper($sortdir) : 'pub_date';
// get sort dir
However I now get a SQL error which seems to be realted to this (ORDER BY sc.createdon pub_date)
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'pub_date' at line 5 »
SQL: SELECT DISTINCT sc.* FROM `emanz_modx`.modx_site_content sc LEFT JOIN `emanz_modx`.modx_document_groups dg on dg.document = sc.id WHERE sc.parent = '7' AND sc.published=1 AND sc.deleted=0 AND (sc.privateweb=0) ORDER BY sc.createdon pub_date;
Ops, a bad habbit I’ve gotten into back from when I knew even less about MODx, than I do now.
Thanks for pointing out the errors of my ways, its all better now
NewsListing Version 4.3
Added xhtml strict month based archives, added nl_ prefix to all styles, minor fixes and documentation cleanup.
IF YOU ARE ALREADY USING VERSION 4.0 OR LATER YOU WILL NEED TO CHANGE YOUR STYLES TO USE THE PREFIX!
Quote from: Mark at Dec 06, 2005, 08:21 PM
IF YOU ARE ALREADY USING VERSION 4.0 OR LATER YOU WILL NEED TO CHANGE YOUR STYLES TO USE THE PREFIX!
There still seems to be a class ID called "pages", shouldn’t this be "nl_pages"?
Cheers.
Sorry, see attached picture from Firefox’s webdevloper.
I changed it originally to "nl_pages" and to adjust the styling of the pages as per Scotty’s post
http://modxcms.com/forums/index.php/topic,1235.msg11973.html#msg11973 and it didn’t work. Changed it back to "pages" and it does.
Looking at Webdevloper, seemed to be a class ID called "pages"
#pages a{
padding:0 5px 0 5px;
}