Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-16-2009, 01:21 PM   #1
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Rep: Reputation: 31
Question Working within content management system, how to sort with date >= today?

Okay, so I'm administrating a website under the restrictions of a content management system, not even sure which one it is. I've been trying to figure out what system it is to find syntax and other info or a wiki. Anyhow it has what it calls "supplementary tables" and under this tab you add column names and types. Once you make a table you can make a "Display Module" with sorting statements and condition statements.

condition statements are to be formatted like this:
Conditions may be compounded by using the AND and OR keywords.

statement1 AND statement2
Both statements must be true
statement1 AND (statement2 OR statement3)
Statement 1 must be true and either of statements 2 or 3
hopefully this gives some insight to someone as to what exactly this system is using, it looked like some code i've seen before.

Anyway, I want to have a date-time variable and be able to condition the display to only show >= todays date, how to do this?

Thanks for any help you can offer.
Old 07-17-2009, 11:23 PM   #2
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu
Posts: 207

Rep: Reputation: 37
Assuming that the condition statements are SQL WHERE clauses, you want

date(YourColumnName) >= date(now())

date(YourColumnName) >= date('now')
Otherwise, I have no idea. Your post didn't give me anything useful to Google for.
Old 07-18-2009, 02:04 AM   #3
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
Lol, yeah it was an interesting thing to figure out, I had to browse through tables others had made, it ended up being NOW()

Thanks for the help!


content, html, management, sql, stuff

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Management System for Newspaper? linuxpyro General 1 01-30-2008 12:53 PM
Content Management System across multiple volumes Guntherk9 Linux - Software 3 01-01-2008 08:11 PM
I need a DocBook content management system sundialsvcs Linux - General 0 09-17-2006 03:13 PM
Daisy Content Management System - cms paul_mat Linux - Software 0 09-18-2005 07:09 PM
Content management system that uses PAM paul_mat Linux - Software 0 06-29-2005 06:19 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration