LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-16-2009, 12:21 PM   #1
mitchell7man
Member
 
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:
Quote:
Conditions may be compounded by using the AND and OR keywords.
Examples:

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, 10:23 PM   #2
Dan04
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu
Posts: 207

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

Code:
date(YourColumnName) >= date(now())
or

Code:
date(YourColumnName) >= date('now')
Otherwise, I have no idea. Your post didn't give me anything useful to Google for.
 
Old 07-18-2009, 01:04 AM   #3
mitchell7man
Member
 
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!
MJ
 
  


Reply

Tags
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 11:53 AM
Content Management System across multiple volumes Guntherk9 Linux - Software 3 01-01-2008 07:11 PM
I need a DocBook content management system sundialsvcs Linux - General 0 09-17-2006 02:13 PM
Daisy Content Management System - cms paul_mat Linux - Software 0 09-18-2005 06:09 PM
Content management system that uses PAM paul_mat Linux - Software 0 06-29-2005 05:19 PM


All times are GMT -5. The time now is 06:39 AM.

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