Vine Type Content Management with Standards in Mind

30 Nov 2005

$_article_comment_count

variable
  • $_comment_count
applicable sections
  • html
description

Place this variable at the location in the article element where you want the count (as a numeral) of comments displayed.

notes

Although this is technically an article element variable and works as designed in the article element, you are more likely to use this variable in your vinetype.config file as a read-only value.

You can use this variable as part of your vinetype.config file entries for

  • $formatted_comments0
  • $formatted_comments1
  • $formatted_comments2

to output different text when the number of comments associated with the article is zero, one, and greater than one. Then instead of this variable in your article template element, use the variable $formatted_comment_count.

download

Visit the Download Area to test drive the standard in standards compliance.

upgrade

Add professional features to your Vine Type site by purchasing a Vine Type Pro license.

feedback

Discuss Vine Type or pose questions at the official Vine Type Forum hosted by ASP Advice.

about us

Learn more about this site and the features it is demonstrating.

© 2001-2017 vine branches — website powered by vine type