Forum OpenACS Q&A: How to modify template::list::element::create to make the -class parameter depend on another multirow element value?

Request notifications

Hi

I'm wondering would it be possible to modify template::list::element::create to make the -class parameter depend on another multirow element value, in the same way that display_template works?

At the moment, you can't make -class dependent on another value from the multirow e.g.

template::list::create \
  -name results \
  -multirow results \
  -no_data "[_ aims.There_are_no_results]" \
  -elements {
    result {
        label "[_ aims.ReviewerProcessResultsResult]"
        class  @results.cell_class@
    }
  } 
I had a look at list-procs.tcl but couldn't see what would be needed to make this work.

Any suggestions?
thanks
Brian