Page 1 of 1

IF in company directory

Posted: Wed Jun 16, 2010 5:38 pm
by r steeltje
dear readers

in the module company directory, i want to make an "if" instruction, to an mark out the difference of a company base on the category (a company directory parameter) it belongs too.

i would expect it would look something like this:

Code: Select all

  {if $categorytext == 'MyCategory'}
  .....
  {/if}
OR

Code: Select all

  {if $category->MyCategory  == '1'}
  .....
  {/if}
can anyone help me with this script?

thanks already R.

Re: IF in company directory

Posted: Fri Jun 18, 2010 8:54 am
by r steeltje
it seems to be a hard question, or is it just ask in an awkward way? ???

How can I read the info from the company directory database, i want to know if an specific "company" belongs to a specific category.
in this module someone can add company's, with address, picture, etc etc. additionally someone can include this company to one or more (self defined)  categories by enabling an checkbox.

i hope this additional information makes my question easier to answer.


thanks already
r

Re: IF in company directory

Posted: Fri Jun 18, 2010 9:12 am
by nicmare

Code: Select all

  {if $categorytext == 'MyCategory'}
  .....
  {/if}
i have it that way to and works fine for me!