Gossamer Forum
Home : Products : Gossamer Links : Discussions :

detailed view, not detailed information?

Quote Reply
detailed view, not detailed information?
Hello Everybody...

I have just "learned" to make new properties for links, and have will use that to give my visitors more information about the programs that I am telling them about (affiliate programs). My problem is, that not all the links I add to my site is affiliate program, so not all have payout information and stuff like that. By them there stabds N/A. But as I have added more and more extra information to the links, The scheme on the site is growing, and I don't want that.



Is there a way to say, that if there isn't any information in the field for the link, then I shouldn't be showed on the detailed page? It should be so I have the same template for both affiliate programs and normal links, but That it's only If I fill some information to the links, that it's showed on the detailed page. I have the default n/a on all properties...



Please help me, thanks

Bent

Cool
Quote Reply
Re: [bannerzone] detailed view, not detailed information? In reply to
If i'm understanding what you want to do, this would be how to do it:

If you set the field to NOT NULL = No that will let you leave the field blank if you don't want information in it. On the detailed page, if you just want the field to show up if there is information in it the just do:

<%if field_name%>

<%field_name%>

<%endif%>

so that it will only put information on the page if it's there.

Mel
Mel Goulet
Developer - Gossamer Threads, Inc.
Quote Reply
Re: [Mel_g] detailed view, not detailed information? In reply to
Thanks Melanie. !

It was just the way I wanted it to be, and it's working fine :-) It's because I wanted to add fields like Payment options, membership fee and stuff like tht to affiliate links, but it looked funno to a site that was about CGI-resources :-)

Take care

Bent

Cool