Closed (fixed)
Project:
Subscriptions
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2009 at 00:56 UTC
Updated:
12 Apr 2009 at 00:50 UTC
OK, I've looked and looked and looked and because I have to search using things like "mail-edit" and "!node_type", I just can't find what I'm looking for.
All I'm trying to do is print a cck field if the node is of a particular type. This is what I've come up with:
{{!node_type==groupevent?:!cckvalue1_field_startdate
}}
{{!node_type==story?:!cckvalue1_field_date }}
Is this correct?
Comments
Comment #1
salvis"If !node_type is 'groupevent' then do nothing, otherwise display !cckvalue1_field_startdate and start a new line."
"If !node_type is 'story' then do nothing, otherwise display !cckvalue1_field_date, followed by a space character."
From what you describe, you probably want to put the field values between
?:, not after the colon.P.S. Note that conditionals are a Subscriptions feature, not a Mail Editor feature.
Comment #2
somebodysysop commentedThank you so much! Switching this issue to Subscriptions.
"If !node_type is 'story' then display !cckvalue1_field_date, otherwise do nothing."
Is this correct?
Comment #3
salvisYes, except you're outputting a space in the else case.