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

Claim Link: Replacing display_link with link info?

Quote Reply
Claim Link: Replacing display_link with link info?
hello

can anyone tell me how to make the claim link plugin pass through the actual link information through to the page (making all its variables available in the page) instead of just displaying an already formatted link within the page and having no access to the individual variables?

this is the code that seems to control it, but I don't know what to do.

Code:
my $link_html = Links::SiteHTML::display('link', $link);

print $IN->header();
print Links::SiteHTML::display('claim_form', { display_link => $link_html });

thanks

r

Last edited by:

ryel01: Mar 21, 2004, 3:25 AM
Quote Reply
Re: [ryel01] Claim Link: Replacing display_link with link info? In reply to
I'd say that "display('link', $link);" is displaying your standard link.html template and if you wanted to make changes to it, change it to
"display('link_claim', $link);" and make a new link template link_claim.html with the variables you want displayed.

Just do a check as there may be other sections in the pm file that will need changing.
Lines 103 and 157 might be close.

Regards

minesite