Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 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]
- [CURRENTPAGE]
- [HASMULTIPLEPAGES][/HASMULTIPLEPAGES]
- [HASNEXTPAGE][/HASNEXTPAGE]
- [HASPREVPAGE][/HASPREVPAGE]
- [LINKPREVIOUS]
- [LINKNEXT]
- [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.
- [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]
- [GRAVATARURL]
- [HASAUTHOR][/HASAUTHOR]
- [HASCOMMENTS][/HASCOMMENTS]
- [HASCOMMENTSENABLED][/HASCOMMENTSENABLED]
- [HASCUSTOMFIELDS][/HASCUSTOMFIELDS]
- [HASIMAGE][/HASIMAGE]
- [HASNOAUTHOR][/HASNOAUTHOR]
- [HASNOCOMMENTS][/HASNOCOMMENTS]
- [HASNOIMAGE][/HASNOIMAGE]
- [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]
- [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]
- [IMAGELINK]
- [IMAGETHUMB:XXX:YYY] (Where XXX is the maximum width and YYY is the maximum height)
- [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.
- [ISNOTANONYMOUS][/ISNOTANONYMOUS]
- [ISNOTFIRST][/ISNOTFIRST]
- [ISNOTSECOND][/ISNOTSECOND]
- [ISNOTSECURE][/ISNOTSECURE]
- [ISPUBLISHED][/ISPUBLISHED]
- [ISRATEABLE][/ISRATEABLE]
- [ISRSSITEM][/ISRSSITEM]
- [ISNOTRSSITEM][/ISNOTRSSITEM]
- [ISSECOND][/ISSECOND]
- [ISSECURE][/ISSECURE]
- [ISSYNDICATIONENABLED][/ISSYNDICATIONENABLED]
- [ITEMINDEX]
- [LASTUPDATEDATE]
- [LASTUPDATEEMAIL]
- [LASTUPDATEFIRSTNAME]
- [LASTUPDATELASTNAME]
- [LASTUPDATEUSERNAME]
- [LASTUPDATEFULLNAME]
- [LASTUPDATEID]
- [LINK]
- [LINKNEXT]
- [LINKNEXTURL]
- [LINKPREVIOUS]
- [LINKPREVIOUSURL]
- [LINKTARGET]
- [MODULEID]
- [PAGECOUNT]
- [PAGE:XX] where XX is the page number.
- [PAGER]
- [PAGES] (View.Item.Html Only)
- [PAGESLIST]
- [PAGETEXT]
- [PAGETITLE]
- [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]
- [TITLE]
- [TITLEURLENCODED]
- [TITLE:XXX] where XXX is the number of chars.
- [VIEWCOUNT]
- [SUMMARY:XXX] where XXX is a number of chars.
- [CREATEDATELESSTHEN:XXX] where XXX is number of days
- [UPDATEDATELESSTHEN:XXX] where XXX is number of days
Image.Item.Html
- [ARTICLEID]
- [FILENAME]
- [HEIGHT]
- [IMAGEID]
- [IMAGELINK]
- [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
- [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]
- [CREATEDATE]
- [CREATEDATE:XXX] where XXX is the date format expression.
- [CREATETIME]
- [DELETE]
- [GRAVATAR]
- [GRAVATARURL]
- [HASANONYMOUSURL][/HASANONYMOUSURL]
- [IPADDRESS]
- [ISANONYMOUS][/ISANONYMOUS]
- [ISNOTANONYMOUS][/ISNOTANONYMOUS]
- [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
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.
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 Huber Registered Users
 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. |
|
|
|
|
Kevin 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 |
|
|
Kevin 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 McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 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 Horton Gold Membership
 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.
|
|
|
|
|
Gary Registered Users
 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 McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 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 Cyriac Registered Users
 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 Horton Gold Membership
 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 McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 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 Horton Gold Membership
 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. |
|
|
|
|
RAZ Registered Users
 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 Horton Gold Membership
 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 Horton Gold Membership
 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. |
|
|
|
|
RAZ Registered Users
 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 Giuseppe Registered Users
 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 Giuseppe Registered Users
 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 Zimmerman Gold Membership
 Ventrian Super Newbie Posts:13


 |
| 12/01/2005 9:53 AM |
|
| Is there going to be a [PRINTARTICLE] token? |
|
|
|
|
Jack Hoelz Gold Membership
 Ventrian Master Posts:861


 |
| 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 |
|
|