Hey Andy, I am not able to make this work with the latest build of Glinks.
Global Name:
newguidehome Global Code
Quote:
sub {
my $return;
my $sth = $DB->table('Links')->select( ['ID'],{ link_type => 'guide' } ) || return $GT::SQL::error;
while (my $id = $sth->fetchrow) { my $link = $DB->table('Links')->get( { ID => $id } );
$return .= Links::SiteHTML::display('link1',$link);
}
return $return;
}
Here is the HTML in the page link1.html
Quote:
<table>
<tr>
<td><%if detailed_url eq 'Yes'%><a href="<%detailed_url%>"><%Title%></a><%endif%></td>
</tr>
<tr>
<td><%Description%></td>
</tr>
</table>
Now it is showing Description the way it should, however it does not show Title at all.. Just displays Description. Now the odd thing is, when I change the global to use link.html page, it works perfectly and shows title and title link... however I can't use link.html layout on home page.
Seems like the tag <%if detailed_url eq 'Yes'%> <%endif%> is not working on link1.html, as if I remove that tag and just insert Title it works, however I want the title to link to its detailed page.
Any idea what I can do to make it work?
Thanks for the help.
Vishal
Vishal
-------------------------------------------------------