[themes] conditional output based on value of CCK field

Mark Hope mark at markhope.net
Wed Jul 25 17:55:29 UTC 2007


I've got a CCK content type using a field called 'field_news_type'

I'm looking to conditionally output some code based on the value of  
the CCK field.
The Field has a possible 3 values:
	Editorial
	Full News Article
	Teaser Article

I need to do something like:

if $field_news_type = Retail Week Teaser {
  //dothis
}

Any pointers would be appreciated.

Thanks
Mark


More information about the themes mailing list