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: Expression Token for Non Custom Fields?
Prev Next
You are not authorized to post a reply.

Author Messages
David GreenUser is Offline
Gold Membership
Ventrian Super Newbie
Ventrian Super Newbie
Posts:24

1/26/2012 1:33 PM  

I'm trying to simply compare the publishedstartdate with the publishenddate to determine if they're the same and act on it if so.  Is this possible?  I see the [EXPRESSION] token that would work great with a custom field, but is there something similar that I could use for a non custom field?

I'm basically asking for an if statement... does something like that exist and I'm just overlooking it?

Thanks.

Adam PaxtonUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:44


6/28/2012 5:15 PM  

 Looking to do the same thing with IMAGECOUNT.  Possible?

 

[HASIMAGES]

[EXPRESSION:IMAGECOUNT:>:1]

//Show [IMAGES]

[/EXPRESSION:IMAGECOUNT:>:1]

[/HASIMAGES]


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


7/02/2012 7:10 AM  
There isn't a token for that, but, there is a token for use in the images template:

[ISITEMINDEX:XX][/ISITEMINDEX:XX]

[ISNOTITEMINDEX:XX][/ISNOTITEMINDEX:XX]

This allows you to conditionally render some images based on their index, e.g. hide the first one?

Does that help? Or are you trying to do something else?

Scott McCulloch
Site Administrator
Adam PaxtonUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:44


7/18/2012 4:34 PM  
Sorry, didn't see your response until now. I would like to hide the images section (including header) from View.Item if there is only 1 image. The reason being that I use the first image as a banner at the top of the article, and if there is only one image total attached to the article, then it looks kind of funny having the same image at the top as it does below.

I think I can make ISNOTITEMINDEX work by removing the Images header, so it doesn't show up at all, with images or without. Thanks.

Adam Paxton
You are not authorized to post a reply.
Forums > Modules > News Articles > Expression Token for Non Custom Fields?



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.