I'm just wondering if anyone else has had a problem like this? I cannot work out whats wrong with my code.
I have been wracking my brain to figure a way around this, and short of moving the logic into my customised tpage or moving it into latex, I'm stuck.
if someone has a working example they could give me or perhaps give me a clue how to debug this, I'd really appreciate it.
Thanks,
Jason.
Jason Lewis wrote:
Hi Andy,
Thanks for your suggestion. I gave it a go but TT doesn't seem to like it:
[% SET ImagePath = FILTER path_filter; item.CatagoryImagePath; END %] gives:
file error - parse error - catalogue.tt line 47-49: unexpected token (FILTER)
[% SET ImagePath = FILTER path_filter;
item.CatagoryImagePath;
I have read all the doco on FILTER I can find, and the syntax looks correct to me. Not sure whats going wrong.
Any ideas?
Jason
Andy Wardley wrote:
Jason Lewis wrote:
[% SET ImagePath = item.CatagoryImagePath | path_filter %] [% IF ImagePath != "" %] \includegraphics[width=3cm]{[%ImagePath%]} [% END %]
[% SET ImagePath = FILTER path_filter; item.CatagoryImagePath; END %]
HTH A
--
Jason Lewis ------------------------------------------------- please note my new email address [EMAIL PROTECTED]
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
