ras_file_download_list · 2008-11-18 21:53 by Rick Silletti
An interesting idea suggested here forum.textpattern.com/viewtopic.php?id=28935
The plugin includes a file download list tag, and a conditional which matches a file id by attribute. I see no reason not to add 2 lines of code to the core for this capability?
ras_authors_list · 2008-10-17 20:41 by Rick Silletti
This plugin returns a list, much like section_list and category_list, that links user names as an author search link. List can be section sensitive or set to a specific section, also the lists can be segregated by user privilege type as specified inside TXP.
This plugin is intended for use with TXP Ver. 4.0.6
Changes of Moment · 2008-05-28 23:37 by Rick Silletti
For any that follow Textpattern development who haven’t read and considered the possibilities made available by the combination of container tag advancements and the new tag parser. Do read the articles linked to below from the Dev Weblog. The new choices break all the barriers that have been fretting folk forever.
ras_singlelink · 2008-05-13 20:50 by Rick Silletti
A set of tags for drawing on the links as defined inside Textpattern one at a time by ID. Hmmm…
[edit] There is an update to 4.0.6.2 that I would recommend for this, it is the current download.
Update on if_article category · 2006-03-07 16:47 by Rick Silletti
Tags shuffled to test for a match in either cat1 or cat2. If cat1 is a match the function is exited, if not, a match is looked for in cat2. There is a lot of room for originality here (and some for Excedrin).
<txp:ras_if_article_category1 name="second,list,test"> <p> 1 <txp:category1 /></p> <txp:else /> <txp:ras_if_article_category2 name="second,list,test"> <p> 2 <txp:category2 /></p> <txp:else /> <p>No Match for Categories</p> </txp:ras_if_article_category2> </txp:ras_if_article_category1>
Tags shuffled to look for a combination of matches in cat1 and cat2, more arbitrary, but not as difficult to get your head around.
<txp:ras_if_article_category1 name="test,list,second"> <txp:ras_if_article_category2 name="second,list,test"> <p> Both category one and two<br /> <txp:category1 /><txp:category2 /></p> </txp:ras_if_article_category2> </txp:ras_if_article_category1>
Functions go as follows:
function ras_if_article_category1($atts, $thing)
{
global $thisarticle;
extract(lAtts(array(
‘name’ => ‘’,
),$atts));
$cat = $thisarticle[‘category1’];
return parse(EvalElse($thing, in_list($cat, $name)));
}
function ras_if_article_category2($atts, $thing)
{
global $thisarticle;
extract(lAtts(array(
‘name’ => ‘’,
),$atts));
$cat = $thisarticle[‘category2’];
return parse(EvalElse($thing, in_list($cat, $name)));
}
Functions are in one plugin at the sidebar as ras_if_article_category.
The combo tag was clunky, square, and simply not going to fit in the round hole. The two tag approach may seem confusing at first, but it offers more flexibilty. (and they were easier to write)

Page 1 of 9
