At 07:45 23/08/99 , Timothy Grant wrote:
<dtml-var Category> gives me the part of the variable name before the underscore.
I tried to get <dtml-var expr="<dtml-var Category> + '_qty'"> to work, but that generates syntax errors.
Above line is a nested DTML tag, which doesn't work. You have to ask the namespace for the variable with the name that consists of the string contained in the variable Category, concatenated to the string literal '_qty': <dtml-var "_[Catagory + '_qty']"> _[...] is the namespace lookup, and you look up variable named by the string made up from Category + '_qty'. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------