Forum OpenACS Q&A: Response to Difference between Data Model & Data Source

Posted by Brian Fenton on
It's the other way around, Andrew! ;-) You tell the .tcl file where to find the .adp by including this line in your .tcl:

ad_return_template "cal-item"

If the .adp has the same name as the .tcl, just type:

ad_return_template ""

This way you can have more the same .adp used by more than one .tcl.

I found it useful to study other people's code i.e. look in packages/ticket-tracker/www/admin

While we're on the topic, does anyone care to nominate any individual package as the Oscar winner for Best Coded Package? People new to OpenACS could then be pointed at that as a good example of OpenACS coding.