Forum OpenACS Q&A: templating, use of <include src=..> tag

is there a way of preventing a direct access to a page that is only used by
calling it via <INCLUDE src=..> tag?
Collapse
Posted by Dave Bauer on
Yes.

Don't put the includable files under www

If they are part of a package try packagename/lib/

You would refer to the file relative to the openacs install dir like this:

<include src="/packages/packagename/lib/template">

Don't specify adp or tcl extension.

The name of the directory isn't signifigant, but eventually we should decide on a common directory name to use for this purpose.

Collapse
Posted by Jay Dubanik on
Thanks, it worked well.