Coda Clips

Two-level navigation menu by catgories and their assigned articles

<txp:category_list parent="**SelectionInsertionPlaceholder**" exclude="**SelectionInsertionPlaceholder**" wraptag="ul" break="li" > 
<txp:variable name="catclass" value="passive" />
<txp:if_category name='<txp:category />'>
 <txp:variable name="catclass" value="active" />
</txp:if_category>
<txp:category title="1" link="1" class='<txp:variable name="catclass" />' />
<txp:article_custom category='<txp:category />' wraptag="ul" break="li" sort="title asc">
<txp:variable name="artclass" value="passive" />
<txp:if_article_id>
 <txp:variable name="artclass" value="active" />
</txp:if_article_id>
<txp:permlink class='<txp:variable name="artclass" />'><txp:title /></txp:permlink>
</txp:article_custom>
</txp:category_list>

Added to by Robert Wetzlmayr

Install Clip


Respect plural when displaying comment count number

<txp:if_comments><p class="comments-nbr"><txp:php>
global $thisarticle;
$nbr = comments_count(array());
$nbr > 1 ? $plural = 's' : '';
echo( ($nbr == 0 ? '' : ($nbr > 1 ? $nbr.' comment' : $nbr.' comment'.$nbr) );
</txp:php></p></txp:if_comments>

Added to by Patrick Lefevre

Install Clip


Hide Notes in Textpattern

<txp:hide><<**SelectionInsertionPlaceholder**>></txp:hide>

Added to by Graham Bancroft

Install Clip


Page Title

<txp:page_title />

Added to by Sam Brown

Install Clip


Custom Form

<txp:output_form form="<<**SelectionInsertionPlaceholder**>>" />

Added to by Sam Brown

Install Clip


If Comments Error

<txp:if_comments_error><<**SelectionInsertionPlaceholder**>></txp:if_comments_error>

Added to by Sam Brown

Install Clip


If Comments Disallowed

<txp:if_comments_disallowed id=""><<**SelectionInsertionPlaceholder**>></txp:if_comments_disallowed>

Added to by Sam Brown

Install Clip


If Comments

<txp:if_comments><<**SelectionInsertionPlaceholder**>></txp:if_comments>

Added to by Sam Brown

Install Clip