Forum OpenACS Development: Search URL in news/www/index

Collapse
Posted by Dave Bauer on
The news package defines a parameter ShowSearchInterfaceP which determines if a search box is shown on the news page. It uses the package_key of a package "search" to find the URL. We all now know that using package key is almost never the right way to find the URL of a package.

One solution is to use site_node_closest_ancestor_package_url instead of apm_package_url_from_key which fails if more than one instance of a package is mounted.

That is a workable solution, can anyone think of a better alternative?