Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2011-07-05 17:33:09

Registered: 2008-05-01
Posts: 113

Re: Using glz_custom_fields and categories to create a tagging system

This is working wonderfully, thanks, Stef. Is there a way to check if the value is NOT empty? I’m running into a problem with the way I’m doing it right now, which is to check if it IS empty. Here’s what I’m doing:

<txp:smd_switch item="?coverageclient">
   <txp:smd_case type="empty">
      <txp:article_custom section="coverage" coverageclient='<txp:variable name="coverageclient" />' form="article_listing" limit="999" />

The thing is, if there are articles that have no client (or coverage type, or media outlet, etc) associated with them (as there are in some cases), those articles are showing up on the page regardless of whether anything is selected. So instead of getting a list of articles from CNN, I am getting a list of articles from CNN, followed by all the ones that have one or more empty values for some of the fields.

Any ideas?

The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.


Board footer

Powered by FluxBB