Defining Web Site Composition
Before generating a Web site, you need to define its composition and page setup by entering its properties.
To define the Web site composition:
1. In Hopex Windows Front-End, right-click the Web site and select Properties).
2. Indicate the properties and format of your Web site, see:
Defining Objects
You must indicate which main object or main object list you want to display in your Web site. You can add projects, processes, etc. that group basic objects.
Example: You can build your site from a project. All the component objects of the project will appear in the Web site when you create the corresponding pages.
To define objects you want to display in your Web site:
1. From the Web site Properties, select the Object tab.
2. To add:
3. If you do not want the objects that depend on the main object to appear in the Web site, you need to deactivate the extraction process: clear Propagation.

Extraction carried out starting from a project includes the diagrams of this project, with for each diagram the objects represented such as org-units, messages. For detailed information, see the
Hopex Power Supervisor guide.
4. Click OK.
Adding an object
To add an object:
1. From the Web site Properties, select the Object tab.
2. Click Add and select An object.

You can also right-click the web site and select the button
Add Object.
3. In the Add object dialog box, select the Type of object you want to add.
4. In the Name field, click the arrow and select List.
5. Select the desired object and click OK.
The object is added in your Web site tree.
6. (Optional) Add other projects or objects.

You can also open the object properties to obtain information or carry out modifications prior to generation.
Adding an object list
To add an object list:
1. From the Web site Properties, select the Object tab.
2. Click Add and select A Query.

You can also right-click the web site and select the button
Add Query.
3. In the Type field, select the object type to be queried.
4. In the Query field, select the query.
Select:
• "*" if you want to add all repository objects corresponding to the selected object type, or
• "[Object collection]" to select only certain objects of a given type.
Adding Pages
A page is a hypertext document that is part of a Web site. You need to add pages for each object to be covered in a page.
To add pages to your Web site:
1. From the Web site Properties, select the Pages tab.
2. In your Web site tree, right-click the Pages folder and select Add.
The Add Page dialog box opens.
3. In the Object field select the type of object described
4. (optional) If necessary, you can select a Query (filter) to restrict the list of objects to be included in a page.
Example: Quality Assurance organizational processes

You cannot use queries that contain variables. For this reason they are not proposed in the list. If no query appears, click

.
5. In the Format pane, define the HTML page Format:
• Header
• Body
6. Click OK.
Text formatting
HTML pages include two parts:
• Header
• Body
Header
An HTML page header contains the title of the page (visible to the user), META information that defines keywords that could be used by search engines, the style sheet, etc.
Hopex proposes three types of header:
• Standard header
The Standard header automatically specifies the style sheet, the page title (object name) and the keywords associated with the object.
If you have Hopex keywords associated with an object (Keywords navigation window), these keywords appear in the header of the page describing the object.
Example: <META NAME="keywords" CONTENT="Order, Delivery">.
• Header defined by an HTML descriptor
Hopex offers the possibility of creating HTML Header descriptors that supplement the META information contained in the HTML page header. You can therefore add keywords, the page title and the style sheet using standard HTML tags. If you have created a specific header, you can select it in the Header drop-down list

The descriptor should not contain <Head> ... </Head> tags.
• Header defined by a script formatter
You can describe a header using a script formatter connected to a VB macro.
Body
The body constitutes the visual content of the HTML page. There are different types of format:
• Formatting using HTML descriptors.
• Formatting using script formatters
Modifying pages
To modify a created page:
1. Right-click the page and select Properties.
2. You can modify:
• its Name
• its Query
• its Format (header and body)
Adding Index Pages
Index pages facilitate access to your Web site pages.
Indexes list the objects that appear in the Web site.
You can create index pages from objects already the subject of a page.
If the index is not created from an object page, you can customize it using an HTML descriptor or VB Script. The descriptor should be of category "HTML Specific Body"

This descriptor should be created from the "HTML Specific Body" sub-folder of the "HTML Web Site Specific Page" folder in the
Utilities navigation window).
To create an index page from an object:
1. From the Web site Properties, select the Pages tab.
2. In your Web site tree, right-click the Indexes folder and select Add.
The Add Index Page dialog box opens.
3. From the Contents pane, select the page.
4. From the Index type pane, select the type of object that will form the contents of the index.
The index type allows you to determine the format of your index.

When you are defining Web site pages, do not specify two different formats for the same object type: when the page is generated, only the latest format will be taken into account.
5. Click OK.
The properties of your Web site have been specified.
Contents of a Generated Web Site
A generated Web site contains several types of page:
• Site Map
• Index pages
• Pages specific to each object in the repository Hypertext links in these pages provide access to related pages. The pages are divided into several parts or frames.
Home page
The Home Page is the main page of a Web site, used as a starting point for accessing the other pages. It indicates the main object described by the site. It also contains the site comment, if one was entered in the Comment tab of the Web site properties dialog box.
To return to the Home Page from another site page:

Click the

icon.
The Home Page also provides access to the parent URL (represented in the Home Page by the Enterprise Site link).
To enter the parent URL address:

Select the
Characteristics tab of the Properties dialog box when you create your Web site.
You can use the URL address of your company Web site, for example.

If the name of the object or objects you indicated in the
Objects tab do not appear as a hypertext link, this is because you have not defined the corresponding page.
Site map
The Site Map provides an overview of the Web site contents. It includes links to the index pages and to the pages describing the site objects.
Index pages
The index pages list the objects by object type.
Pages specific to each object
There are several parts / tabs in pages describing an object in the repository. At the top of the page tabs provide a navigation tool.
Example: A process may have as its components org-units, notes, a diagram, chapters, external references that you can access by clicking on the corresponding link.

It is also possible to display the parent objects of the object concerned, which are the objects that are linked to it at a higher level in the hierarchy, for example the project(s) containing the organizational process. However, the default is to hide this facility in order to make your pages more readable. We will discover how to display these parent objects in
Configuring Web Sites.
Web Site Folders and Files
Files supplied as standard and those resulting from generation are located in the the following folder: <environment path>\Intranet

A sub-folder for each Web site is automatically created (if it has not been specified at the time of creation of the Web site).
In the "Intranet" folder of the environment or in the sub-folder corresponding to the Web site you will find:
• The "Standard" folder that contains the standard images provided for use when generating the Web site.
• The "Pages" folder that contains the generated files (“.htm” extension).
• The "Images" folder that contains the generated diagrams.
• Files corresponding to the Home Page and Site Map.
Viewing or modifying the location of web site files
To view or modify the location of web site files:

Open the properties of the web site in
Hopex Windows Front-End.
Modifying the name of Web site folders
To modify the name of web site folders:
1. Launch "Administration.exe" and open the site options.
2. Expand the Tools > Documentation > Web sites folder.
3. Modify the name of the "Generated pages", "Generated Images" or "Standard files" folders.
Home page and site map
File names for the Home Page and Site Map can vary depending on your specifications. If a name does not appear in the Characteristics tab of the site properties dialog box, this means that the corresponding page has not been generated.

By default, the Home Page and the Site Map have the navigation menu on the left. If you want to position this at the top, you must change the Home Page and Site Map page templates. They can also be customized by copying templates in the Mega_Std folder of the has.custom module. For more detailed information, see
Modifying Home Page and Site Map Files.