|
|||||||||||||||||||||||
Logical NameThe site logical name beginning VWCMS_SITE_ and ending with the site name is used to specify a site's content file. This file is by convention named _INDEX.HTML and for Vdub the resulting logical name looks something like: $ SHOW LOGICAL VWCMS_SITE_VDUB /FULL From this logical name the location of other site resources (images, downloadable content, etc.) also is derived. In this example it is the slightly confusing VWCMS_ROOT_VDUB:[VDUB]. The VWCMS_ROOT_VDUB concealed logical name is used to provide a server-independent (Apache, OSU, WASD) location. For WASD this logical name translates
Hence to create a site named "The Example" physically located in the top-level directory of the defined VWcms area (see Configuration) the following logical name would need to be defined: $ DEFINE /SYSTEM VWCMS_SITE_THE_EXAMPLE VWCMS_ROOT:[THE_EXAMPLE]_INDEX.HTML Of course to make this permanent the name would need to be defined during system startup. Mapping Rules 1The site's URL must be mapped into server space.
The script rule for OSU and WASD is only required the once per VWcms. Mapping Rules 2VWcms only provides content from the _INDEX.HTML primary content file. For efficiency all other site resources (CSS, images, graphics, etc.) are provided directly by the Web server. This requires it to be configured for where to obtain these files. VWcms uses the site name prefixed by an underscore as the root of the resource path. Using the above "The Example" site, a graphic resource would be requested using /_the_example/an_image.png Therefore for each site a rule must be present that maps this to the file-system location.
Of course this is in addition to other required mapping rules.
|
|||||||||||||||||||||||
![]() |
![]() |
![]() |
| As at: Thursday, 11 March 2010 03:51 Updated: Tuesday, 16 February 2010 21:40 (3 weeks ago) | ||