Help - Search - Members - Calendar
Full Version: Ifcategory Name="foo And Bar"
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
hass
Is this supposed to work, and if not, is there an alternative?

QUOTE
<mt:Ifcategory name="foo AND bar"> ?

<mt: tag="entrycategory" eq="Foo AND bar">


Su-
QUOTE (hass @ Apr 29 2008, 04:55 PM) *
Is this supposed to work, and if not, is there an alternative?
QUOTE
<mt:Ifcategory name="foo AND bar"> ?
<mt: tag="entrycategory" eq="Foo AND bar">


There's nothing wrong with the syntax of the first tag, but you're not telling us what you expect it to do, which would help in figuring out why it's "not" working. I've often found that when people use the boolean operators, they're using them backwards.

The second snippet, besides having a space after the colon that probably shouldn't be there, is testing if the entry's category has the literal name "Foo AND bar" which I doubt is what you're after.
hass
Thanks.

This is what I want: If the current entry is filed under both categories of "foo" and "bar", then do something....
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.