Application Initialisation

In order to initialise a portal application, you call the cf_spPortal tag (instead of cf_spApp). This tag should be placed in your Application.cfm in the www directory for your application, e.g. c:\inetpub\weapps\myapp\www\.

The cf_spPortal tag will look for a portal.cfg configuration file in the application's config directory (note: not the same location as application configuration files for standard Speck apps). If this file doesn't exist, the tag will throw an exception.

Unlike the cf_spApp tag, the cf_spPortal tag can usually be called without any attributes. It figures out the application name from the current path.

The following table list the attributes of the cf_spPortal tag:

Attribute Type Required Description
Name String No Application name. Defaults to the name of the parent directory.
Refresh Boolean No Refresh all configuration settings for the application, including all content types. Default "No".

Note: you can force a portal application to be refreshed by creating a file called refresh.txt in the tmp directory for the app. The file will be deleted and the application will be refreshed on the next request (note that the coldfusion user must have access to delete the file).