Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%if Contact Name%> tag problem

Quote Reply
<%if Contact Name%> tag problem
How to handle such template operation?
<%if Contact Name%><%Contact Name%><%endif%>

It will be always false because only Contact Name isn't handled together.

Using quotes <%if "Contact Name"%>, I get the following error:
GT::Template (3732): Unable to run compiled template file '/path/link.html.compiled'. Reason: $@: syntax error at /path/link.html.compiled line 106, near "() "
(Might be a runaway multi-line {} string starting on line 100)
syntax error at /path/link.html.compiled line 110, near "else"

The error is at line 106, that value is missing from if () statement:
Code:
if () {
if (defined($tmp = $self->_get_value(q{Contact Name}, $strict))) {
$return .=(ref $tmp eq 'SCALAR' ? $$tmp : $escape ? GT::CGI::html_escape($tmp) : $tmp);
}
else {
$return .= q{Unknown Tag: 'Contact Name'};
}
}
else {
$return .= q{-};
}

Any idea how to solve the problem?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread <%if Contact Name%> tag problem webmaster33 3312 May 25, 2003, 8:09 PM
Thread Re: [webmaster33] <%if Contact Name%> tag problem
Payooo 3113 May 25, 2003, 8:20 PM
Thread Re: [Payooo] <%if Contact Name%> tag problem
webmaster33 3143 May 25, 2003, 8:28 PM
Thread Re: [webmaster33] <%if Contact Name%> tag problem
Payooo 3135 May 25, 2003, 8:32 PM
Thread Re: [Payooo] <%if Contact Name%> tag problem
webmaster33 3161 May 25, 2003, 8:48 PM
Post Re: [webmaster33] <%if Contact Name%> tag problem
Payooo 3105 May 25, 2003, 8:52 PM
Thread Re: [webmaster33] <%if Contact Name%> tag problem
Paul 3108 May 25, 2003, 11:47 PM
Thread Re: [Paul] <%if Contact Name%> tag problem
webmaster33 3121 May 26, 2003, 12:04 AM
Post Re: [webmaster33] <%if Contact Name%> tag problem
webmaster33 3067 Jun 15, 2003, 8:09 AM
Thread Re: [webmaster33] <%if Contact Name%> tag problem
Alex 3059 Jun 16, 2003, 10:42 AM
Thread Re: [Alex] <%if Contact Name%> tag problem
webmaster33 3069 Jun 16, 2003, 10:59 AM
Thread Re: [webmaster33] <%if Contact Name%> tag problem
Alex 3038 Jun 16, 2003, 11:00 AM
Post Re: [Alex] <%if Contact Name%> tag problem
webmaster33 3037 Jun 16, 2003, 11:18 AM