Managing Web Site Files
Generated File and Folder Structure
The Web site is generated in a folder indicated in the properties of each Web site (see To create a Web site from a Web site template: for a description of these properties).
For each site, the following structure is generated:
The described structure is generated by the standard sites provided. The generation can be customized if a different structure is required.
The environment folder includes image files such as bullets and the company logo, which are independent of the repository content, as well as the Web site style sheet (xxx.CSS).
The “Images” folder contains the diagrams generated from the repository contents.
The “Pages” folder contains the HTML files that describe the site repository objects, as well as the files required for site navigation.
*For each object, there can be several HTML files; for example, the one that defines the two frames in the main window (menu on the left, and object description on the right), and the two files that define the content of these two frames. Depending on the type of object, there may be additional files; for example, an object described by a diagram will have additional HTML files used to display its drawing, etc.
To move a site, simply select the root folder for the site structure and copy it to another location. The generated HTML addresses are relative and remain valid wherever the site is placed. Example: BACKGROUND=“../STANDARD/BKGROUND.GIF”.
Configuring User Options
To configure user options:
1. From Hopex menu bar, select Tools > Options.
2. In the Options of user window, double-click the "Web Sites" icon.
You can:
specify the Generated images format (Bitmap, JPEG, SVG, PNG).
modify the Default parent URL (http://www.mega.com).
specify the templates used for the Home Page and Site Map.
The Home Page and Site Map are generated from files found in the MEGA_STD folder of the folder in which Hopex was installed. These files have the extension “.mth”: "HomeLeft_us.mth" for the Home Page, "SiteMap_us.mth" for the Site Map with navigator at the left. If you want to customize these files, copy them into the “Mega_Std” folder of the custom module tree-structure, and refer to Modifying Home Page and Site Map Files.
modify the folder that contains the standard files (for example, the images corresponding to the various object types) and the images and pages generated.
process external references as being relative to the Web site.
Hopex Power Studio - Publisher offers you the possibility of importing external references into the Hopex site. For more detailed information, see Integrating External References.
specify the case for names of generated files (first letter upper or lower-case).
delete pages of an earlier generation before any new generation.
Modification of these parameters is valid for all Web sites generated.
Checking File Names
The file “Sitedef.ini” found in the root folder in which the site is generated (Intranet is the default) indicates for each object the correspondence between its absolute identifier and the name of the file describing its main page.
For each object in the site, a paragraph like this is created:
[245D261330A3002D]
PageName = 245D261330A3002D
Available = Yes
Object = Sales Department Org-Unit
MetaClass = Org-Unit
Integrating External References
Hopex Power Studio - Publisher offers you the possibility of importing external references into the Hopex site.
*To do this, you must create external references with predefined folder (see Using External References).
External reference integration standard mode
To integrate external references in the Hopex site:
1. Verify that the external references are specified using a predefined folder.
2. Indicate that the address of external references is relative to the Web site.
From Hopex menu bar, select Tools > Options, then double-click the Web Sites icon and select External references relative to site.
3. Generate the Web site.
4. Start the "XRefCopy.vbs" file in the "Intranet" folder to copy the external references in a sub-folder of the site.
By default, this sub-folder is called REFEXT. You can modify it in the user configuration (in the workspace, select Options > Tools then double-click the Web Sites icon).
The external references are now accessible from the Web site.
External reference management configuration
External reference path generation can be configured if the standard method described above is not suitable.
You can carry out this parameterization using a macro, connecting it to the Web site or Web site template by the "External reference manager" link.
To do this:
1. In the pop-up menu of the Web site, select Explore.
2. In the empty "External reference manager" folder, click Connect.
The Query window appears.
3. Select the required macro.
Macro content
If no macro is connected to the Web site, the "ExternalReferenceManager" macro provided by default is taken. This macro carries out processing described in External reference integration standard mode.
You can create your own macros. The macro must contain the following methods:
Start of generation
This method indicates start of generation.
Sub StartExternalReference(oWebGenCtx)
End Sub
Method called for external references
Sub ExternalReferencePathGet(oExternalReference, oWebGenCtx,enFilter , strResultPath)
This method is called for each external reference. It retrieves the path of the external reference to be displayed in strResultPath and manages copy.
 
End of generation
Sub StopExternalReference()
End Sub