Register   Login
     
  Latest Posts  
Create article not using 'edit skin'
by mattbunce on 7/29/2010 10:41 AM
Sexy comments
by mattbunce on 7/29/2010 10:35 AM
RE: NewsArticles slider examples
by kalak on 7/29/2010 9:49 AM
ENH: Like and dislike button
by bennypg on 7/29/2010 8:14 AM
RE: Search for location distance
by Codepoint on 7/29/2010 8:03 AM
RE: delete album in module, but not on server
by aggiebeck on 7/29/2010 7:29 AM
RE: Exporting photos
by aggiebeck on 7/29/2010 6:52 AM
RE: New Attachment Process
by jwinters on 7/29/2010 6:00 AM
RE: Standard template changed
by Aramus on 7/29/2010 4:12 AM
RE: NewsArticles slider examples
by nokiko on 7/29/2010 3:48 AM
  Forums  
Subject: News Articles Tokens
Prev Next
Topic is locked

Author Messages
armand datemaUser is Offline
Gold Membership
Ventrian Wiz
Ventrian Wiz
Posts:122

3/02/2010 11:05 PM  

Hi scott

 

I would like to have a tag to show the category name in the news article latest. Now i have to to

[hascategory:category1]Category1[/hascategory]

 

this is a bit of overkill and the tempaltes get quite big because of all the hascategories

 

Could you add this in a coming version?

 


Armand Datema
SchwingSoft
Avanced skinning, jQuery integration and creative use of Ventrian modules
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:18313


3/03/2010 3:42 AM  
An article has many categories, what one to show?

There is the [CATEGORIES] token though?

Scott McCulloch
Site Administrator
armand datemaUser is Offline
Gold Membership
Ventrian Wiz
Ventrian Wiz
Posts:122

3/03/2010 3:54 AM  
I checked it out and yes [categories] works for me since articles can only be in one category. Didnt think of that i looked for [category]

Armand Datema
SchwingSoft
Avanced skinning, jQuery integration and creative use of Ventrian modules
DirtyDogHostingUser is Offline
Gold Membership
Ventrian Newbie
Ventrian Newbie
Posts:4

3/12/2010 12:13 PM  

Hey Scott,

I didn't see that there was any way to add a form like the comments section for emailing the article to someone. if I missed it I am sorry for wasting your time. A token like you have in the property agent [EMAILFORM] or similar would kick butt! Using the mailto command just leaves you with minimal options for making the article link presentable to potential readers.

So rather then "I though you might be interested in: Long ass [ARTICLELINK] link here" It would be "I thought you might be interested in [ARTICLETITLE]"

What'cha think?

 
Kind Regards,
Aric
DirtyDogHostingUser is Offline
Gold Membership
Ventrian Newbie
Ventrian Newbie
Posts:4

3/12/2010 12:14 PM  

[EDIT: REMOVED DOUBLE POST] Sorry!!

Ray DixonUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:369


3/12/2010 12:23 PM  

Hi DirtyDogHosting,

A lot of people are adding ShareThis or AddThis to their View.Item template. I've added ShareThis and it works well. Both let users share your article via a variety of methods, including email but also Facebook, Twitter, LinkedIn, etc.

Search in the News Articles forum for ShareThis and/or AddThis and you should find some examples.

Good luck!

-Ray

Phil SpethUser is Offline
Registered Users
Ventrian Wiz
Ventrian Wiz
Posts:138

3/12/2010 1:50 PM  

Could you add an [RSSLINK] token to the news articles archive module.

This would be especially useful for Category View.

DirtyDogHostingUser is Offline
Gold Membership
Ventrian Newbie
Ventrian Newbie
Posts:4

3/12/2010 7:18 PM  

Hi Ray,

Thank you kindly for the insight. I will check this out and see if it will do the trick.

Kind regards,

Aric

Laverne DouglasUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:79

3/19/2010 10:43 AM  

Does anyone know how to use:

[CREATEDATELESSTHEN:XXX] where XXX is number of days
[UPDATEDATELESSTHEN:XXX]

Thanx

Ray DixonUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:369


3/21/2010 3:04 PM  

I think it works like most of the conditional tags in that you can display HTML between the start and end tags of the tokens if the condition is true. For instance, you could display an image for articles updated less than two days ago like this:

Scott, please correct me if I'm wrong here.

Laverne DouglasUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:79

3/21/2010 10:27 PM  
Okay, I understand
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:18313


3/22/2010 4:35 AM  
Sorry guys, I mis-spelt the token, it is CREATEDATELESSTHAN and UPDATEDATELESSTHAN

Scott McCulloch
Site Administrator
Victor AvilesUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:16

3/24/2010 6:32 PM  
Will there ever be any token that will allow summary and/or article text without any html formating. Simply text, no HTMl tags what so ever?
ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1044


3/24/2010 6:47 PM  
Posted By Victor Aviles on 3/24/2010 6:32 PM
Will there ever be any token that will allow summary and/or article text without any html formating. Simply text, no HTMl tags what so ever?



[SUMMARY:XXX] where XXX is a number of chars.

From what I recall, that strips the HTML formatting, including paragraph tags, which means it is not normally suitable for large blocks of content.

Rob

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


3/25/2010 3:57 AM  
Thanks Rob

Scott McCulloch
Site Administrator
Victor AvilesUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:16

3/28/2010 1:36 PM  
That did it! Thanks guys.
cirriousUser is Offline
Silver Membership
Ventrian Newbie
Ventrian Newbie
Posts:7

5/11/2010 4:28 AM  
Thanks for the module :)

I'm looking to add an icon to each of my categories.

Is there any token I can use - I'm thinking of something like [CATEGORIESNOLINK] but with - or _ encoding - then I could use it inside CSS class names or inside an img src file name.

Or I guess I could use [HASCATEGORY:XXX] in a big switch statement... that's the way I'll go if there's no other suggestion.
cirriousUser is Offline
Silver Membership
Ventrian Newbie
Ventrian Newbie
Posts:7

5/11/2010 6:36 AM  

Oops - think I may have spoken too soon there - is there actually a [HASCATEGORY] tag?

I guess if I can't find any other way then I'll use a custom field.

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


5/11/2010 7:10 AM  
There is a [HASCATEGORY:XXX][/HASCATEGORY:XXX] token, but it's used for checking categories on a single article - you could use that.

I'm also going to lock this thread because it is quite long - so feel free to post in a new thread if you have any further questions.

Scott McCulloch
Site Administrator
Topic is locked
Forums > Modules > News Articles > News Articles Tokens



ActiveForums 3.7