ras_if_dates
A collaboration plugin combining ras_if_days and jayrope’s aaa_dates as a single plugin containing five tags. Tags are used to select article content conditionally by posting date or time.
Requires TXP Version 4.0.4
Enable/Disable article content by offset from posting time
Both ras_enable_articles and ras_disable_articles conditional tags are included. These conditional tags compare article posting dates to attribute settings and return contained content accordingly.
ras_enable_articles selects article content (as true) for display for the length of time, as set by the attributes, since the article posting time.
ras_disable_articles disables article content (as true) for display until the specified time has passed, as set by the attributes, since the article posting time.
Both tags will accept an else clause and negative values for attributes can be used as well as positive. All calculations are offset from the present by comparison to past or furture posting times
These tags are intended for use in an article form; they should, however, return article values in page templates in single article mode as well (Ver TXP 4.0.4).
Posting Date Conditional Article Content
ras_if_dates_today returns all articles posted to the date set with setdate, default is the current day. If the offset attribute is used, what is considered today is offset into the past or future by the value set in integer days, if setdate is set offset is disregarded. ras_if_dates_before returns all articles posted before, but not to include by default, the date set with setdate. ras_if_dates_after returns all articles posted after, but not to include by default, the date set with setdate.









If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:
Commented (3)
Super, i am using it ALL THE TIME!
great plug!
Rick, I’ve been trying to download a couple of your plugins (mainly ras_if_dates and ras_delete_expired) but I can’t access your site due to my IP being blacklisted. I’m not sure how that happened, but your plugins would really help me out. Any help would really be appreciated. Thanks!
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site. Get a Gravatar.