Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Non Templates Sickness ;(

Quote Reply
Non Templates Sickness ;(
hehe..

anyways.. i'm just beginning to notice that you can't compare to tags in templates..

what i'm trying to do is compare a user with another tag that is THE user that is viewing the page..

so

Code:
<%if Username eq U-Username%>
This is your profile! (edit.. etc)
<%endif%>

U-Username being the username of the guy logged on..

get what i'm saying?

and i was beginning to like templates too Wink

jerry
Quote Reply
Re: Non Templates Sickness ;( In reply to
i'm stupid.. Smile

i could just do it in the subroutine in HTML_Templates.pm

something like

Code:
($tags->{Username} eq $tags->{U-Username)) ? ($tags->{isProfile} = 1) : ($tags->{isProfile} = undef);

jerry