WSN Gallery
Article Variables
Article Variables
By Paul

Main variables
{IMAGEID} - The id number of the article.
{IMAGETITLE} - The title of the article.
{IMAGEDESCRIPTION} - Description of the article.
-- Optional paramater: {IMAGEDESCRIPTION[x]} will trim the description to x characters.
{IMAGEDESCRIPTIONSENTENCE} - The first sentence of the desciption.
{IMAGETEXT} - The full text of the article.
-- Optional paramater: {IMAGETEXT[x]} will trim the text to x characters.
{IMAGECATID} - The id number of the category which this article is in.
{IMAGECATNAME} - The name of the category this article is in.
{IMAGEORIGINALCATNAME} - The name of the original category of an aliased article (or just regular category name otherwise).
{IMAGEEMAIL} - The email address provided when the article was submitted.
{IMAGEHITS} - Number of times the article has been viewed.
{IMAGENUMCOMMENTS} - Number of comments posted about this article.
{IMAGEOWNERID} - Member id number of the person who submitted the article.
{IMAGETYPE} - The type of this article (regular, etc)
{IMAGEDATE} - The date on which this article was first submitted.
{IMAGELASTEDITDATE} - The date on which this article was last edited.
{IMAGENEW} - Contains the html to display the "new" image if the article is new, otherwise it's empty.
{IMAGEUPDATED} - Contains the html to display the "updated" image if the article is updated, otherwise it's empty.
{IMAGEHITSOUTTEMP} - Number of views over last admin-defined number of days.
{IMAGEHITSOUTPERDAY} - Number of views per day.
{IMAGEHITSOUTPERMONTH} - Number of views per month.
{IMAGEDAYSOLD} - The number of days ago the article was submitted.
{IMAGEEXPIREDAYS} - Days until article expires, if it is set to expire.
{IMAGEVIEWERS} - List of people who've viewed the article [if activated]
{IMAGETHREADVIWERS} - List of people who've viewed the associated comments thread [if activated]
{IMAGEADMIN} - If the viewer has permission to edit the article, contains the edit image/link... otherwise empty.
{IMAGENUMALIASES} - The number of aliases the article has.
{IMAGEALIASEDIN} - A list of the categories the artoc;e is aliased to.
--- Optional paramater: separator (defaults to a comma)
{IMAGEIMPORTANCE} - The importance of the listing based on the formula defined in your admin panel.
{IMAGEIMPORTANCENUMBER} - The ranking of the listing ordered by importance.

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

Attachment variables
{IMAGEFILENAME} - The filename on disk of the attached file -- this will be a long randomized string.
{IMAGEFILETITLE} - The readable submitted file name of the attachment, suitable for display.
{IMAGEDOWNLOADS} - The number of times the attached file has been downloaded.
{IMAGEFILESIZE} - Size of attachment in bytes.
{IMAGEKB} - Size of attachment in kilobytes.
{IMAGEXWIDTH} - The width of image attachments in pixels.
{IMAGEYHEIGHT} - The height of image attachements in pixels.
{IMAGEISIMAGE} - 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, {IMAGEMYATTACHFIELDKB} would give the size in KB of a custom attachment field named myattach.

Misc.
{IMAGENAV} - Contains the navigation path of the categories to get to the article.
{IMAGETYPESELECTOR} - The <option value...> content of the article type selector.
{IMAGEHIDESELECTOR} - Contains <option value...> content of the yes/no selector for hiding a article.
{IMAGEVALIDATED} - 0 if article is unvalidated, 1 if it is validated.
{IMAGEHIDE} - 0 if article is hidden, 1 is visible.
{IMAGENOTIFY} - 0 if submitter does not want to be notified of comments on the article, 1 if they do.
{IMAGEISREAD} - 0 (false) if the article has not been visitied by the user, 1 (true) if it has.
{IMAGECOMMENTSREAD} - 0 (false) if the most recent comment in the associated comments thread has not been read by the user, 1 (true) if it has.
{IMAGEISNEW} - 0 if article is old, 1 if it's new.
{IMAGEISUPDATEDBOOL} - 0 if article hasn't been recently updated, 1 if it has been.

Rating:


3/5 based on 2 votes. The median rating is 1.

Submitted: 11/23/03 (Edited 08/03/09)

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

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

Previous Article | Next Article

Features Showcase Purchase Services Resources Support