Ventrian Product Forums

We've moved our Product Forums!
To better assist our customers, we've moved to an integrated knowledge base and ticketing system. You can access the new forums at http://support.ventrian.com.
Subject: News Articles Tokens
Prev Next
Topic is locked

Page 1 of 1612345678910 > >>
Author Messages
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21233


10/13/2005 4:20 AM  
The following is a list of tags usable in News Articles templates. This is a pre-cursor to the template guide.
 
Listing.Header.Html/Listing.Footer.Html
  • [CATEGORYFILTER]
  • [CATEGORYSELECTED][/CATEGORYSELECTED]
  • [CATEGORYNOTSELECTED][/CATEGORYNOTSELECTED]
  • [CURRENTPAGE]
  • [HASMULTIPLEPAGES][/HASMULTIPLEPAGES]
  • [HASNEXTPAGE][/HASNEXTPAGE]
  • [HASPREVPAGE][/HASPREVPAGE]
  • [LINKPREVIOUS]
  • [LINKPREVIOUSURL]
  • [LINKNEXT]
  • [LINKNEXTURL]
  • [PAGECOUNT]
  • [TABID]
Listing.Featured.Html/Listing.Item.Html/View.Item.Html/View.Title.Html/View.Description.Html/View.Keyword.Html/Handout.Item.Html/Rss.Item.Html
  • [ARTICLEID]
  • [ARTICLELINK]
  • [ARTICLELINK:XXX] where XXX is antoher article ID.
  • [APPROVERDISPLAYNAME]
  • [APPROVERFIRSTNAME]
  • [APPROVERLASTNAME]
  • [APPROVERUSERNAME]
  • [AUTHOR]
  • [AUTHOR:XXX] where XXX is the profile field name. e.g. [AUTHOR:FirstName]
  • [AUTHOREMAIL]
  • [AUTHORUSERNAME]
  • [AUTHORFIRSTNAME]
  • [AUTHORLASTNAME]
  • [AUTHORFULLNAME]
  • [AUTHORID]
  • [CAPTION:XXX] where XXX is the name of the caption.
  • [CATEGORIES]
  • [CATEGORIESNOLINK]
  • [COMMENTLINK]
  • [CREATEDATE]
  • [CREATETIME]
  • [COMMENTCOUNT]
  • [COMMENTLINK]
  • [COMMENTRSS]
  • [COMMENTS] - loads the comment.item template for each comment.
  • [CURRENTPAGE]
  • [CUSTOMFIELDS]
  • [CUSTOM:XXX] where XXX is the name of the custom field.
  • [DETAILS]
  • [DETAILS:XXX] where XXX is the number of characters to show.
  • [EDIT]
  • [EXPRESSION:XXX:YY:ZZZ][/EXPRESSION:XXX:YY:ZZZ] where XXX is the name of a custom field, YY is the operator (=,!=,>,>=,<,<=) and ZZZ is the value to compare against. e.g. [EXPRESSION:Bedrooms:>:5]Wow this is a big place[/EXPRESSION:Bedrooms:>:5]
  • [FILECOUNT]
  • [FILES] -- Loads file templates for each file
  • [GRAVATARURL]
  • [HASAUTHOR][/HASAUTHOR]
  • [HASAUTHORVALUE:XXX][/HASAUTHORVALUE:XXX]
  • [HASCOMMENTS][/HASCOMMENTS]
  • [HASCOMMENTSENABLED][/HASCOMMENTSENABLED]
  • [HASCUSTOMFIELDS][/HASCUSTOMFIELDS]
  • [HASFILES][/HASFILES]
  • [HASIMAGE][/HASIMAGE]
  • [HASIMAGES][/HASIMAGES]
  • [HASNOAUTHOR][/HASNOAUTHOR]
  • [HASNOCOMMENTS][/HASNOCOMMENTS]
  • [HASNOFILES][/HASNOFILES]
  • [HASNOIMAGE][/HASNOIMAGE]
  • [HASNOIMAGES][/HASNOIMAGES]
  • [HASNOLINK][/HASNOLINK]
  • [HASLINK][/HASLINK]
  • [HASMOREDETAIL][/HASMOREDETAIL]
  • [HASMOREDETAIL:XXX][/HASMOREDETAIL:XXX] where XXX is the number of characters to check against.
  • [HASMULTIPLEPAGES][/HASMULTIPLEPAGES]
  • [HASNEXTPAGE][/HASNEXTPAGE]
  • [HASPREVPAGE][/HASPREVPAGE]
  • [HASRATING][/HASRATING]
  • [HASRATINGSENABLED][/HASRATINGSENABLED]
  • [HASRELATED][/HASRELATED]
  • [HASSUMMARY][/HASSUMMARY]
  • [HASNOSUMMARY][/HASNOSUMMARY]
  • [HASTAG:XXX][/HASTAG:XXX] where XXX is the name of the tag.
  • [HASVALUE:XXX][/HASVALUE:XXX] where XXX is the name of a custom field.
  • [HASNOVALUE:XXX][/HASNOVALUE:XXX] where XXX is the name of a custom field.
  • [HASTAGS][/HASTAGS]
  • [IMAGE]
  • [IMAGE:ZZZ] (Where ZZZ is the position in list of images)
  • [IMAGECOUNT]
  • [IMAGELINK]
  • [IMAGES] -- loads images templates
  • [IMAGETHUMB:XXX:YYY] (Where XXX is the maximum width and YYY is the maximum height)
  • [IMAGETHUMBRANDOM:XXX:YYY] (Where XXX is the maximum width and YYY is the maximum height)
  • [IMAGETHUMB:XXX:YYY:ZZZ] (Where XXX is the maximum width and YYY is the maximum height and ZZZ is the position in list of images)
  • [IMAGETHUMBLINK:XXX] is the actual URL of the link to the thumbnail image.
  • [ISANONYMOUS][/ISANONYMOUS]
  • [ISAUTHOR][/ISAUTHOR]
  • [ISDRAFT][/ISDRAFT]
  • [ISFEATURED][/ISFEATURED]
  • [ISNOTFEATURED][/ISNOTFEATURED]
  • [ISFIRST][/ISFIRST]
  • [ISFIRST2][/ISFIRST2] only true when on the first page of listings.
  • [ISINROLE:XXX][/ISINROLE:XXX] where XXX is the role name.
  • [ISITEMINDEX:XXX][/ISITEMINDEX:XXX] where XXX is a number.
  • [ISLOCALE:XXX][/ISLOCALE:XXX]
  • [ISNOTANONYMOUS][/ISNOTANONYMOUS]
  • [ISNOTFIRST][/ISNOTFIRST]
  • [ISNOTSECOND][/ISNOTSECOND]
  • [ISNOTSECURE][/ISNOTSECURE]
  • [ISPAGE:XXX][/ISPAGE:XXX]
  • [ISNOTPAGE:XXX][/ISNOTPAGE:XXX]
  • [ISPUBLISHED][/ISPUBLISHED]
  • [ISRATEABLE][/ISRATEABLE]
  • [ISRSSITEM][/ISRSSITEM]
  • [ISNOTRSSITEM][/ISNOTRSSITEM]
  • [ISSECOND][/ISSECOND]
  • [ISSECURE][/ISSECURE]
  • [ISSYNDICATIONENABLED][/ISSYNDICATIONENABLED]
  • [ITEMINDEX]
  • [LASTUPDATEDATE]
  • [LASTUPDATEEMAIL]
  • [LASTUPDATEFIRSTNAME]
  • [LASTUPDATELASTNAME]
  • [LASTUPDATEUSERNAME]
  • [LASTUPDATEFULLNAME]
  • [LASTUPDATEID]
  • [LINK]
  • [LINKNEXT]
  • [LINKPREVIOUS]
  • [LINKTARGET]
  • [MODULEID]
  • [PAGECOUNT]
  • [PAGE:XX] where XX is the page number.
  • [PAGER]
  • [PAGER2] - an UL list of pages.
  • [PAGES] (View.Item.Html Only)
  • [PAGESLIST]
  • [PAGESLIST2]
  • [PAGETEXT]
  • [PAGETITLE]
  • [PAGETITLENEXT]
  • [PAGETITLEPREV]
  • [PORTALROOT]
  • [POSTCOMMENT] - the post comment form.
  • [POSTRATING] - the post rating form.
  • [PRINT]
  • [PRINTLINK]
  • [PUBLISHSTARTDATE]
  • [PUBLISHSTARTDATE:XXX] where XXX is a date format expression for flexibility of date format.
  • [PUBLISHENDDATE]
  • [PUBLISHENDDATE:XXX] where XXX is a date format expression for flexibility of date format.
  • [RATING]
  • [RATINGCOUNT]
  • [RATINGDETAIL]
  • [RELATED] (uses related templates, shows up to 5 articles).
  • [RELATED:XXX] where XXX is the number of related articles to show (uses related templates)
  • [SITETITLE]
  • [SUMMARY]
  • [TABID]
  • [TABTITLE]
  • [TAGS]
  • [TAGSNOLINK]
  • [TEMPLATEPATH]
  • [TITLE]
  • [TITLEURLENCODED]
  • [TITLE:XXX] where XXX is the number of chars.
  • [TWITTERNAME]
  • [VIEWCOUNT]
  • [SUMMARY:XXX] where XXX is a number of chars.
  • [CREATEDATELESSTHAN:XXX] where XXX is number of days
  • [UPDATEDATELESSTHAN:XXX] where XXX is number of days

Image.Item.Html

  • [ARTICLEID]
  • [DESCRIPTION]
  • [FILENAME]
  • [HEIGHT]
  • [IMAGEID]
  • [IMAGELINK]
  • [ISITEMINDEX:XXX][/ISITEMINDEX:XXX] -- where XXX is the item position number, e.g. 1
  • [ISNOTITEMINDEX:XXX][/ISNOTITEMINDEX:XXX] -- where XXX is the item position number, e.g. 2
  • [ITEMINDEX]
  • [SIZE]
  • [SORTORDER]
  • [TITLE]
  • [WIDTH]
  • [IMAGETHUMB:XXX:YYY] where XXX is the max width and YYY is the max height.
Comment.Item.Html/Rss.Comment.Item.Html/Latest Comments
  • [ANONYMOUSURL]
  • [ARTICLEID]
  • [ARTICLELINK]
  • [AUTHOR]
  • [AUTHOR:XXX] where XXX is the profile field name. e.g. [AUTHOR:FirstName]
  • [AUTHORDISPLAYNAME]
  • [AUTHOREMAIL]
  • [AUTHORUSERNAME]
  • [AUTHORFIRSTNAME]
  • [AUTHORLASTNAME]
  • [AUTHORFULLNAME]
  • [AUTHORID]
  • [COMMENTID]
  • [COMMENT]
  • [COMMENT:XX] where XXX is the maximum number of characters to show (will remove html)
  • [CREATEDATE]
  • [CREATEDATE:XXX] where XXX is the date format expression.
  • [CREATETIME]
  • [DELETE]
  • [GRAVATAR]
  • [GRAVATARURL]
  • [HASANONYMOUSURL][/HASANONYMOUSURL]
  • [IPADDRESS]
  • [ISANONYMOUS][/ISANONYMOUS]
  • [ISNOTANONYMOUS][/ISNOTANONYMOUS]
  • [ISAUTHOR][/ISAUTHOR]
  • [ISCOMMENT][/ISCOMMENT]
  • [ISINROLE:XXX][/ISINROLE:XXX] (where XXX is the name of a role)
  • [ISPINGBACK][/ISPINGBACK]
  • [ISTRACKBACK][/ISTRACKBACK]
  • [ITEMINDEX]
  • [MODULEID]
  • [PINGBACKURL]
  • [RATING]
  • [TRACKBACKBLOGNAME]
  • [TRACKBACKEXCERPT]
  • [TRACKBACKTITLE]
  • [TRACKBACKURL]

Rss.Item.Html (As well as the tokens for View.Item.Html)

  • [DESCRIPTION]
  • [ENCLOSURELENGTH]
  • [ENCLOSURELINK]
  • [ENCLOSURETYPE]
  • [GUID]
  • [HASENCLOSURE][/HASENCLOSURE]
  • [TRACKBACKLINK]

Rss.Header.Html/Rss.Footer.Html

  • [PORTALNAME]
  • [PORTALURL]

Category.Html (shown at the top of the view category page)

  • [ARTICLECOUNT]
  • [CATEGORYLABEL]
  • [CATEGORYID]
  • [CHILDCATEGORIES] - loads the child categories 1 level deep (loads Category.Child.Html for each)
  • [DESCRIPTION]
  • [HASCHILDCATEGORIES][/HASCHILDCATEGORIES]
  • [HASNOCHILDCATEGORIES][/HASNOCHILDCATEGORIES]
  • [HASNOPARENT][/HASNOPARENT]
  • [HASPARENT][/HASPARENT]
  • [LINK]
  • [NAME]
  • [PARENTDESCRIPTION]
  • [PARENTLINK]
  • [PARENTNAME]
  • [RSSLINK]
  • [VIEWS]
  • [CHILDCATEGORIES:XXX] where XXX is the number of levels deep.
  • [DESCRIPTION:XXX] where XXX is the number of characters to display.
  • [ISDEPTHABS:XXX][/ISDEPTHABS:XXX] where XXX is the number of levels deep from the root node.
  • [ISNOTDEPTHABS:XXX][/ISNOTDEPTHABS:XXX] where XXX is the number of levels deep from the root node.
  • [PARENTDESCRIPTION:XXX] where XXX is the number of characters to display.

Category.Child.Html

  • [ARTICLECOUNT]
  • [CATEGORYID]
  • [DEPTHABS] - The depth of the category from the root category.
  • [DEPTHREL] - The depth of the category in relation to the current category.
  • [DESCRIPTION]
  • [LINK]
  • [NAME]
  • [RSSLINK]
  • [ORDER]
  • [VIEWS]
  • [DESCRIPTION:XXX] where XXX is the number of characters to display.
  • [IFORDER:XXX][/IFORDER:XXX] where XXX is the sort order number.
  • [IFNOTORDER:XXX][/IFNOTORDER:XXX] where XXX is the sort order number.
  • [ISDEPTHABS:XXX][/ISDEPTHABS:XXX] where XXX is the depth of the category from the root category.
  • [ISDEPTHREL:XXX][/ISDEPTHREL:XXX] where XXX is the depth of the category relative to the current node.
  • [ISNOTDEPTHABS:XXX][/ISNOTDEPTHABS:XXX] where XXX is the depth of the category from the root category.
  • [ISNOTDEPTHREL:XXX][/ISNOTDEPTHREL:XXX] where XXX is the depth of the category relative to the current node.

File.Item.Html

  • [ARTICLEID]
  • [FILEID]
  • [FILENAME]
  • [FILELINK]
  • [SIZE]
  • [SORTORDER]
  • [TITLE]
  • [ISEXTENSION:XXX][/ISEXTENSION:XXX] where XXX is the extension name.
  • [ISNOTEXTENSION:XXX][/ISNOTEXTENSION:XXX] where XXX is the extension name.

News Archives (Date)

  • [COUNT]
  • [ISSELECTEDMONTH][/ISSELECTEDMONTH]
  • [ISNOTSELECTEDMONTH][/ISNOTSELECTEDMONTH]
  • [ISSELECTEDYEAR][/ISSELECTEDYEAR]
  • [ISNOTSELECTEDYEAR][/ISNOTSELECTEDYEAR]
  • [LINK]
  • [MONTH]
  • [YEAR]

News Archives (Category)

  • [DEPTHABS]
  • [CATEGORY]
  • [CATEGORYNOTINDENTED]
  • [COUNT]
  • [DEPTHREL]
  • [LINK]

News Archives (Author)

  • [AUTHORID]
  • [AUTHORUSERNAME]
  • [AUTHORDISPLAYNAME]
  • [AUTHORFIRSTNAME]
  • [AUTHORLASTNAME]
  • [AUTHORFULLNAME]
  • [COUNT]
  • [LINK]
Handout.Cover.Html, Handout.End.Html, Handout.Header.Html, Handout.End.Html
  • [DESCRIPTION]
  • [LOGO]
  • [NAME]
Please reply to this thread, if you have suggestions for additional tokens.
 

 


Scott McCulloch
Site Administrator
Robert HuberUser is Offline
Registered Users
Ventrian Wiz
Ventrian Wiz
Posts:126

10/13/2005 8:27 AM  

Thanks for that Scott.

[Category] would also be great, especially for the Latest News Module. 

KevinUser is Offline
Registered Users

Posts:50

10/13/2005 8:36 AM  

In addition to [CATEGORY], [PRINTARTICLE] and [EMAILARTICLE] would be nice.

When I use the module print icon, I reverts back to the main view with the list of articles.


Kevin - NetFlint Website Services
KevinUser is Offline
Registered Users

Posts:50

10/13/2005 11:35 AM  

Thanks for the module and the template list.

I was checking out your blog and it occurred to me that it would be nice to have  [NEXTARTICLE] and [PREVIOUSARTICLE] tokens to ease navigation when you are viewing articles.

Thanks again.


Kevin - NetFlint Website Services
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21233


10/13/2005 3:33 PM  

Great suggestions guys!

[CATEGORY] would display a list of categories comma seperated (by default, configurable through the xml file) that link to each category. Sound right?


Scott McCulloch
Site Administrator
Mike HortonUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:84


10/15/2005 11:06 AM  
Sounds good but also if it wasn't there then it wouldn't show up at all. On one of my sites I'd prefer that the couldn't see the category listing.
GaryUser is Offline
Registered Users
Ventrian Addict
Ventrian Addict
Posts:66

11/02/2005 1:21 PM  

How about adding [LASTCOMMENTUSER] , [LASTCOMMENTDATE] , and [LASTCOMMENTTIME]

I would like to have something like this on the bottom of my summary..

37 comments - last comment by Gary on Nov 2, 2005 at 1:47 PM


Gary
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21233


11/02/2005 4:00 PM  
Posted By GHunter on 11/02/2005 1:21 PM

How about adding [LASTCOMMENTUSER] , [LASTCOMMENTDATE] , and [LASTCOMMENTTIME]

I would like to have something like this on the bottom of my summary..

37 comments - last comment by Gary on Nov 2, 2005 at 1:47 PM



Excellant suggestion

Scott McCulloch
Site Administrator
John CyriacUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:13

11/03/2005 5:03 AM  

[COMMENT], [COMMENT:XXX], [COMMENTUSER], [COMMENTDATE], [COMMENTIME] would be good for Latest Articles when listing Most Commented articles to show details of the most recent comments instead of the article title. So you can have "Scott on News Article Tokens" links.

For Category it would be good to have [HASCATEGORY], [/HASCATEGORY] in addition to [CATEGORY].

I'd also like to be able to have more stats. for latest articles such as...

Most Commented On
==============
News Articles (3)

...when there have been 3 comments on an article. Perhaps [COMMENTCOUNT] in latest articles?

Same for categories showing the number of articles in a category...

Categories
=======
News Articles (25)
Shout Box (5)

...when there are (x) number of articles in a category. Perhaps [CATEGORYCOUNT]?

Mike HortonUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:84


11/06/2005 1:21 PM  

Scott, would it be possible to get a variation of your comma delimited [CATEGORY] (if that's how you go with it) where it shows only the category the article belongs to?

Take the default template for an example. It would be nice if there are multiple categories you could headline it a little bit better in the title. Say [ASSIGNEDCATEGORY] - [CREATEDDATE] . Actually that might even be nice in the Listing View.

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21233


11/06/2005 3:14 PM  
Posted By mikeh on 11/06/2005 1:21 PM

Scott, would it be possible to get a variation of your comma delimited [CATEGORY] (if that's how you go with it) where it shows only the category the article belongs to?

Take the default template for an example. It would be nice if there are multiple categories you could headline it a little bit better in the title. Say [ASSIGNEDCATEGORY] - [CREATEDDATE] . Actually that might even be nice in the Listing View.



It should only show 1 category if that has all has been assigned? The category list would be assigned categories only as well?

Something like this I thought, see the filed under section..


Scott McCulloch
Site Administrator
Mike HortonUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:84


11/06/2005 3:50 PM  

Not so much that the category list would be assigned categories but that the category name that the article is assigned to could be displayed. The link you posted looks like it would work in a template.

What's happening is I've got a site admin that keeps putting adding a separate announcement module everytime something is added to the site and I think that many instances of the module (>15) is causing the server's CPU to be pinned. Just a guess but that's the best I can come up with at the moment.

Anyways, I figure that if I can get him to just use the News Articles module on the front page then it's just one instance but can cover however many categories he wants and visitors can tell at a glance what it pertains to.

RAZUser is Offline
Registered Users
Ventrian Wiz
Ventrian Wiz
Posts:119

11/10/2005 5:13 AM  

Any news on the PRINT token ?

It is awfull that you can´t the articles out !!!

Mike HortonUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:84


11/10/2005 7:49 AM  
Not sure what you mean by not being able to take articles out? You just need to unpublish the article and it no longer shows up.
Mike HortonUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:84


11/10/2005 7:56 AM  
Oops, misread that and Scott won't let us edit our posts . Ignore my post.
RAZUser is Offline
Registered Users
Ventrian Wiz
Ventrian Wiz
Posts:119

11/10/2005 7:57 AM  

Sorry my bad, what I meant was I can´t print the articles ( take them out of the system and read at home

Every time I try to use the print icon on the module it just sends me back to the article list

Bosso GiuseppeUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:16

11/22/2005 1:49 AM  
Hi Scott,

I have a Latest Article module that show the latest 5 article of "myCategory". So I want add at the footer (or header) a link "view all" that works like [CATEGORIES]. It should be a link to the category of the Latest Article module. There is some feature like this?

Bye.
Bosso GiuseppeUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:16

11/22/2005 3:46 AM  
I have add two token in Latest Article for this purpose (in Header and Footer):

[MODULECATEGORIES] comma delimited list of module categories hyperlinked
[MODULECATEGORY]     hyperlink of first module category (permit to customize the text of hyperlink, for example <a href=[MODULECATEGORY]>Read all...</a>, raccomanded use for module that shows only one category article)

If these can be useful to someone or, Scott, you want add these in the next relese, where I can post the code?
John ZimmermanUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:13


12/01/2005 9:53 AM  
Is there going to be a [PRINTARTICLE] token?
Jack HoelzUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:899


12/02/2005 12:10 PM  

Since I started using the module to develope a recipe repository I am getting some significant pressure for a "print" option.

Is anyone aware of a way to do this without a token?


Get The Net!!

Jack Hoelz
Topic is locked
Page 1 of 1612345678910 > >>

Forums > Modules > News Articles > News Articles Tokens



ActiveForums 3.7
We've moved our Product Forums!
To better assist our customers, we've moved to an integrated knowledge base and ticketing system. You can access the new forums at http://support.ventrian.com.