Forum OpenACS Q&A: Re: double deference in template

Collapse
Posted by Brian Fenton on
Hello Hsin

I presume that the example you gave of a select widget is a simplified version to give us an idea of what you want? Otherwise I would just recommend that you use the existing template::widget (or write your own if needed).

Having said that, it seems to me that what you are trying to achieve should work in theory? It's just a matter of getting the correct references to the data structures (and the correct quoting etc). It could be as simple as a missing backslash in the reference to the variable. Or possibly you could embed some TCL code in the ADP using the <%= syntax.

Did you see some of the usage notes here about using the include tag? https://openacs.org/doc/acs-templating/tagref/include.html

If you could post the actual full code you're working with, I'd be happy to take a look.

Brian