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

Reply via email to