Moxi Media Inc.
site.properties Discussion Forum

IMF Developer's Guide » site.properties  

This page is for IMF application administrators only. Once you create an IMF site, ask your administrator to set up an entry in the site.properties file for your site.

NEW in version 5.1 - An entry in site.properties is no longer required if your site configuration file is located at particular location within the IMF directory and has a common name. If the site configuration file is named "site.xml" or "site-config.xml" and exists in a subdirectory of the "sites" which has the same name as the specified site, the site can be called without having an associated entry in site.properties. For example, if you call imf.jsp with a parameter like http://yourserver.com/imf/imf.jsp?site=basemap, IMF will look for the xml file in the following order:

If the site is named with an entry in the site.properties file on the IMF server, the site can be called with the site=sitename argument instead of pointing it to an XML document in the command line. This makes for a much neater URL and hides the configuration document from the user.

For example, if you have a site named basemap that has its site configuration file at http://yourserver.com/basemap/site.xml, and you would prefer not to have the location of the XML file required in the URL, you can put the following in your site.properties file, then access your site like http://yourserver.com/imf/imf.jsp?site=basemap.

# site.properties
#
# Specifies the location of site configuration files for known
# applications so that the application can be called using
# http://yourserver/imf/imf.jsp?site=sitename
#
# format: site_name = url to site configuration file

basemap = http://yourserver.com/basemap/site.xml

The site configuration files can exist on the IMF server, or on another server that is accessible to the IMF server using an HTTP request.

Valid HTML 4.01!