IF in company directory

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
r steeltje
Forum Members
Forum Members
Posts: 37
Joined: Tue Mar 11, 2008 12:43 pm

IF in company directory

Post 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.
Last edited by Anonymous on Thu Jun 17, 2010 8:40 am, edited 1 time in total.
r steeltje
Forum Members
Forum Members
Posts: 37
Joined: Tue Mar 11, 2008 12:43 pm

Re: IF in company directory

Post 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
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: IF in company directory

Post by nicmare »

Code: Select all

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

Return to “Modules/Add-Ons”