Gossamer Forum
Home : Products : Gossamer Links : Discussions :

paymentsEnabled on detailed page?

Quote Reply
paymentsEnabled on detailed page?
I'm trying to check whether a link has been paid for on a detailed page. The following tag works fine on the search_results template, for example, but not on detailed.html:
Code:

<%~if paymentsEnabled%>
<%if isUnpaid%><span class="unpaid-item"><span>unpaid</span></span><%endif%>
<%~endif%>

I understand some tags available on some templates are not available on others, but WHERE in GLinks is this per template usage determined? Feel like I'm missing something basic about how Glinks operates. Crazy

squillo

Quote Reply
Re: [squillo] paymentsEnabled on detailed page? In reply to
try adding:

Code:
<%Links::Utils::load_link_info()%>

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] paymentsEnabled on detailed page? In reply to
Thanks -- it worked like a charm and explains some things.