[ic] selectively displaying categories

Dylan Oliver doliver@hampshire.edu
Wed, 7 Mar 2001 17:39:22 -0600


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As in the Construct demo, the left-hand table of my catalog displays a list 
of categories. Not all of these categories contain items, and I'd like to 
display only those that do. I've tried this:

      [set found_cat][/set]
      [loop prefix=cat
      search="
      fi=cat
      st=db
      tf=sort
      tf=name
      rf=code,name
      sf=sel
      " ]
      <!-- Only show categories if there are matching items -->
      [if type="data" term="products::category::[scratch cat]"]
      <tr><td colspan="2" border="1" align="center" class="sky">
	  [cat-exec bar_link]cat[/cat-exec]</td></tr>
      [/if]
      [/loop]

.. and though there are categorized items in products.txt, none are matched. 
Any hints?
- -- 
Dylan Oliver
   http://stout.hampshire.edu/~dao99
Global View International
   http://www.globalview-intl.com
Do you know how little you know? 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjqmxqsACgkQ7U8r0TCZf4EHvQCdGCm2/S4e3/g01e4xqjSqC4M/
cCQAnREcR9UnvnvCl2YHs1rN8gKzLbGI
=wFyc
-----END PGP SIGNATURE-----