PageCode
The PageCode component is a basic component that you must add to all pages, and it must always use the Page.Code placeholder. It provides links to the CSS files and JavaScript files that all SPEAK pages use. If you do not add a PageCode component to a page, the page does not look right – and it does not work. You must add one and only one PageCode component per page.
You also use the PageCode component to point to folders with JavaScript files for the page, and to point to the type name and the assembly of server-side code for the page.
Properties
|
Name |
Description |
Default |
|---|---|---|
|
Data | ||
|
PageCodeScriptFileName |
Specify the script file for the page. The file must be named <name of definition item>.js. If, for example, the definition item is called | |
|
PageCodeTypeName |
Specify the type name and assembly of the Page Code object to be run server-side when the page is loading. | |
|
SpeakCoreVersion |
Specify which version of the SPEAK core to use:
|
When not set, SPEAK core 1.1 is used. |
Configuration
You can create a configuration item for a PageCode component by creating an item based on the PageCode Parameters template.
The configuration item has these specific fields:
-
PageCodeScriptFileName
-
PageCodeTypeName