Go to content Go to navigation Go to search

Links by article date plugin. · Jan 21, 06:55 pm by Rick Silletti

“Links” link form example.

<p><txp:link /><br />
<txp:ras_if_links_today>
<txp:link_date /> <p>Today</p>
<txp:else />
<txp:link_date /> <p>Not Today</p>
</txp:ras_if_links_today>

Called with

<txp:linklist wraptag="p" form="Links" />

View article in individual article mode to view link list.

Furthermore ·

ras_if_links_today


Example delete_articles · Nov 12, 08:26 pm by Rick Silletti

The delete articles plugin provides admin side capability to delete articles according to an expiration date set in a custom field named expire . It has the capabilty to automate the process whenever the user selects the Content tab, or to set the preference to delete by active step with a link on the Write tab. The perference is set under Extensions -> Auto Delete .

Tags included with this plugin are as follows:

<txp:ras_expiration_date />

which returns the expiration date set on each article’s expire field (if set) as part of an article form. It is a variation of TXP’s Posted tag and uses the same attributes.

class
format
gmt
lang
wraptag

<txp:ras_if_expire>

which returns true if an article has an entry in its expire field. This tag uses a conditional wraptag and accepts an else clause.


<txp:ras_set_article_status />

which actively alters an article’s Status if the entry in the article’s expire field has been reached or exceeded. It accepts a status attribute which lists article status numerically as follows.

1 : Draft
2 : Hidden
3 : Pending
4 : Live
5 : Sticky

Furthermore ·

Requires TXP 4.0.4


Example enable_links · Oct 5, 01:45 am by Rick Silletti

ras_enable_links is called from a link form with linklist. The following display newly entered links for 20 hours under the Recently Added label.

<txp:ras_enable_links hours=20>
<li><txp:linkdesctitle /></li>
</txp:ras_enable_links>

The textpattern tag in the page template would go this way.

<ul><txp:linklist form="newlinks" /></ul>


Example if_dates_before · Oct 2, 05:33 pm by Rick Silletti

The dates_before tag returns article content as true in the conditional tag when the posting date is before, but not to include, the date as set in the setdate attribute, deafult is the current date. This tag arrangement will return article content for all articles in the current list with posting dates 2006-09-11 thru 2006-10-09; it will also generate a day header at each dateroll if an article for that date exists. The dates_before tag, in this case, limits returned article content to those posted before 2006-10-10.

<txp:ras_if_dates_after setdate="2006-09-10">
<txp:ras_if_dates_before setdate="2006-10-10">
    <txp:if_different>
    <!-- heading - only once per day -->
    <p><txp:posted format="%A " /></p>
    </txp:if_different>
    <p><txp:permlink><txp:title /></txp:permlink>
     : <txp:posted /></p>
</txp:ras_if_dates_before>
</txp:ras_if_dates_after>

Furthermore ·

Requires ras_if_dates 4.0.4.1


Example if_dates_after · Oct 2, 02:36 pm by Rick Silletti

The dates_after tag returns article content as true in the conditional tag when the posting date is after, but not to include, the date as set in the setdate attribute, deafult is the current date. This tag arrangement will return article content for all articles in the current list with posting dates 2006-09-03, or later.

<txp:ras_if_dates_after setdate="2006-09-02">
Article Content
</txp:ras_if_dates_after>

The following arrangement will return articles whose posting dates run from 2006-09-03 thru 2006-09-09.

<txp:ras_if_dates_after setdate="2006-09-02">
<txp:ras_if_dates_before setdate="2006-09-10">
Article Content
</txp:ras_if_dates_before>
</txp:ras_if_dates_after>

Furthermore ·

Requires ras_dates 4.0.4.1