WSN Knowledge Base
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support
Article Variables
Article Variables
By Paul

Main variables
{ARTICLEID} - The id number of the article.
{ARTICLETITLE} - The title of the article.
{ARTICLEDESCRIPTION} - Description of the article.
-- Optional paramater: {ARTICLEDESCRIPTION[x]} will trim the description to x characters.
{ARTICLEDESCRIPTIONSENTENCE} - The first sentence of the desciption.
{ARTICLETEXT} - The full text of the article.
-- Optional paramater: {ARTICLETEXT[x]} will trim the text to x characters.
{ARTICLECATID} - The id number of the category which this article is in.
{ARTICLECATNAME} - The name of the category this article is in.
{ARTICLEORIGINALCATNAME} - The name of the original category of an aliased article (or just regular category name otherwise).
{ARTICLEEMAIL} - The email address provided when the article was submitted.
{ARTICLEHITS} - Number of times the article has been viewed.
{ARTICLENUMCOMMENTS} - Number of comments posted about this article.
{ARTICLEOWNERID} - Member id number of the person who submitted the article.
{ARTICLETYPE} - The type of this article (regular, etc)
{ARTICLEDATE} - The date on which this article was first submitted.
{ARTICLELASTEDITDATE} - The date on which this article was last edited.
{ARTICLENEW} - Contains the html to display the "new" image if the article is new, otherwise it's empty.
{ARTICLEUPDATED} - Contains the html to display the "updated" image if the article is updated, otherwise it's empty.
{ARTICLEHITSOUTTEMP} - Number of views over last admin-defined number of days.
{ARTICLEHITSOUTPERDAY} - Number of views per day.
{ARTICLEHITSOUTPERMONTH} - Number of views per month.
{ARTICLEDAYSOLD} - The number of days ago the article was submitted.
{ARTICLEEXPIREDAYS} - Days until article expires, if it is set to expire.
{ARTICLEVIEWERS} - List of people who've viewed the article [if activated]
{ARTICLETHREADVIWERS} - List of people who've viewed the associated comments thread [if activated]
{ARTICLEADMIN} - If the viewer has permission to edit the article, contains the edit image/link... otherwise empty.
{ARTICLENUMALIASES} - The number of aliases the article has.
{ARTICLEALIASEDIN} - A list of the categories the artoc;e is aliased to.
--- Optional paramater: separator (defaults to a comma)
{ARTICLEIMPORTANCE} - The importance of the article based on the formula defined in your admin panel.
{ARTICLEIMPORTANCENUMBER} - The ranking of the article ordered by importance.

Voting variables
{ARTICLERATING} - The rating, as a decimal, of the article.
{ARTICLEVOTES} - Number of votes cast for the article.
{ARTICLESUMOFVOTES} - The sum of all vote values cast for this article.
{ARTICLESTARS} - html to display a number of stars equivilant to the article's rating.
{ARTICLEVOTERIPS} - List of IP addresses of the people who have voted for the article.
{ARTICLEVOTERIDS} - Currently N/A, should be list of member ids numbers of people who've voted for the article.
{ARTICLEMEDIANRATING} - The median rating of the article.
-- Optional parameter: field, to get median for custom rating fields. {ARTICLEMEDIANRATING[stylerating]} gets the average style rating.

Attachment variables
{ARTICLEFILENAME} - The filename on disk of the attached file -- this will be a long randomized string.
{ARTICLEFILETITLE} - The readable submitted file name of the attachment, suitable for display.
{ARTICLEDOWNLOADS} - The number of times the attached file has been downloaded.
{ARTICLEFILESIZE} - Size of attachment in bytes.
{ARTICLEKB} - Size of attachment in kilobytes.
{ARTICLEXWIDTH} - The width of image attachments in pixels.
{ARTICLEYHEIGHT} - The height of image attachements in pixels.
{ARTICLEISIMAGE} - For custom attachment fields, a boolean to see if we can make a thumbnail.

Note: For custom attachment variables, insert the field name after article. For example, {ARTICLEMYATTACHFIELDKB} would give the size in KB of a custom attachment field named myattach.

Misc.
{ARTICLENAV} - Contains the navigation path of the categories to get to the article.
{ARTICLETYPESELECTOR} - The <option value...> content of the article type selector.
{ARTICLEHIDESELECTOR} - Contains <option value...> content of the yes/no selector for hiding a article.
{ARTICLEVALIDATED} - 0 if article is unvalidated, 1 if it is validated.
{ARTICLEHIDE} - 0 if article is hidden, 1 is visible.
{ARTICLENOTIFY} - 0 if submitter does not want to be notified of comments on the article, 1 if they do.
{ARTICLEISREAD} - 0 (false) if the article has not been visitied by the user, 1 (true) if it has.
{ARTICLECOMMENTSREAD} - 0 (false) if the most recent comment in the associated comments thread has not been read by the user, 1 (true) if it has.
{ARTICLEISNEW} - 0 if article is old, 1 if it's new.
{ARTICLEISUPDATEDBOOL} - 0 if article hasn't been recently updated, 1 if it has been.

Rate this article:

Submitted: 11/23/03 (Edited 02/09/06)

Description: Description of each item variable in WSN Knowledge Base.

Views: 458 views. Averaging 0 per day.
In the most recent 30 day period, there've been 0 views.

Next Article


Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support