Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How does the isFree tag work?

Quote Reply
How does the isFree tag work?
Question is in the subject.
Quote Reply
Re: [dwh] How does the isFree tag work? In reply to
I'd imagine you would use something like;

<%if isFree%>FREE<%endif%>

... to show if a link was submitted for free.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] How does the isFree tag work? In reply to
Thanks. It doesn't do what I thought it did. I have payment set up so that certain categories are paid and the rest are free. I want ALL links in the paid categories to have a star next to them. I can't think of a way to do this.
Quote Reply
Re: [dwh] How does the isFree tag work? In reply to
how about...

<%ifnot isFree%>STAR IMAGE HERE<%endif%>

r

Last edited by:

ryel01: Aug 16, 2004, 1:08 AM
Quote Reply
Re: [ryel01] How does the isFree tag work? In reply to
I don't think that will work because officially the links are free, but I put them in the PAID category so that the section doesn't look empty. If you show no sales, no one will want to buy, got to prime the pump.
Quote Reply
Re: [dwh] How does the isFree tag work? In reply to
I almost have it. From the category template "<%if Payment_Mode eq '3'%>" is the info I need. But I can't set a variable in the cat template and have it PASS to the Links template. I can't use that <%if Payment_Mode eq '3'%> to call an alternate Links template that has the star in it. It appears that the links data is in a variable that's preprocessed before the cat template even is. And the Payment_Mode tag is unavailable to Links template.
Quote Reply
Re: [dwh] How does the isFree tag work? In reply to
hhmmmmmmm....

you could duplicate your category.html template, and duplicate the link.html template...

then make your paid categories call use category2.html, which in turn use link2.html which has a star in the template.

there's probably an easier way though... Crazy

r
Quote Reply
Re: [ryel01] How does the isFree tag work? In reply to
Even so, how can you make category2.html call the links2.html template? There's built in functionality calling the links.html template.
Quote Reply
Re: [dwh] How does the isFree tag work? In reply to
You could just use the links_loop tag inside your new category template.

category2.html...

instead of calling <%links%>...

use...

<%links_loop%>
"content" from your link.html file here
PLUS FIXED STAR IMAGE
<%endloop%>

that should achieve the same thing I think.

regan.
Quote Reply
Re: [ryel01] How does the isFree tag work? In reply to
Thank you so much. I didn't need to replicate the category.html, just the link.html to link_premium.html and used this code:

Code:

<%if Payment_Mode EQ '3'%>
<%loop links_loop%>
<%include link_premium.html%>
<%endloop%>
<%else%>
<%links%>
<%endif%>
Quote Reply
Re: [dwh] How does the isFree tag work? In reply to
ahhhh that's the bugger. Wink

r