Is this possible

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
relic
Forum Members
Forum Members
Posts: 34
Joined: Fri Dec 08, 2006 9:59 am
Location: New Zealand

Is this possible

Post by relic »

Hi.

I am wanting to know if this is possible with the company directory module, you will see by the code what i am trying to achieve, but i want the payment accepted fields to display images instead of text. Field types are set to "textbox" but nothing seems to display on output.

Heres the code:

Code: Select all

{if $entry->eftpos ne ''} <img src="/global/cards-eftpos.gif" width="29" height="19" />{/if}{if 
          $entry->mastercard ne ''} <img src="/global/cards-mastercard.gif" width="29" height="19" />{/if}{if 
          $entry->visa ne ''} <img src="/global/cards-visa.gif" width="29" height="19" />{/if}
Also reason for selecting field type as "textbox" is so i can just enter "yes" in the text box if that payment method is accepted by any one company.

Any ideas?

Cheers
David
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: Is this possible

Post by cubix »

firstly is this the detailed template or a summary template

in a detailed template, i dont believe customfields are passed in the $entry variable.

and in the summary, they maybe passed as $entry->customfields[0]->value

cant quite remember.

anyway, if the textbox is empty then ne '' will be fine.
Post Reply

Return to “CMSMS Core”