Forum OpenACS Development: Passing custom variables to include

I have the following situation:

I include a custom include file from my index.adp page in project-manager like this:

< include src=@custom_template_src@ project_id=@project_id@ ...>

My question now is: How can I add additional variables like "contact_id" to the include without touching the index.adp file itself, so I can pass through filter variable to the list contained in "custom_template_src".

Should I use a callback? But how would I include the custom variables then? Something like:

< include src= ... @custom_variables@>

where

set custom_variables "contact_id=1235 etat_id=12354"

Collapse
Posted by Gustaf Neumann on
maybe there are better ways to do this, but a simple approach is to parse/evaluate the contents of the custom variables.
set custom variables to attribute value pairs

user < include src= ... custom_variables=\@custom_variables@>

and do e.g. an "array set" in the included tcl script