The Toolkit for Online Communities
17508 Community Members, 2 members online, 2319 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Development : Getting package_id in an init.tcl script : One Message

Forum OpenACS Development: Re: Getting package_id in an init.tcl script

Posted by Randy O'Meara on
Once a package is mounted it's always mounted.

As Don said, if you're trying to retrofit existing bulk-mail instances with attachments, an *-init.tcl file that searches the site-map for existing bulk-mail (without attachments child node) and instantiates attachments would work. You should only have to do this once to hit every existing bulk-mail node.

If you add code to the bulk-mail after-mount callback to instantiate attachments, each new (mounted) bulk-mail instance would automatically get attachments.

Procs that may be useful: