Forum OpenACS Q&A: Re: Code inside display_template in an element of a list template

The idea of display_template is to provide adp code which will define how the element will ve displayed, so tcl code is not allowed here ( as you may noticed :) ). 

So.. one way to go is to extend the vars defined in your db_multirow, you can achive that by using the -extend switch ( check this out https://openacs.org/api-doc/proc-view?proc=db_multirow ). 

One example could be something like this: 

...
...
    display_template { 
           ...
        @yourmultirow.name@
           ...
    }
...
...

db_multirow -extend {name} yourmultirow yourmultirow_query { *SQL* } {
...
...
one::mydraft::get -item_id $item_id -array my_array
set name $my_array(name)
...
...
}