WebDir - page of object PmWebDir

On this page, the parameters for searching the HTML pages on the disk are set. Number of PmWebDir objects in the project isn't limited; their disk spaces can overlapped.
Configuration items:
Web component identifierIt specifies unique identifier of this WEB component. The full URL address to this component is then for example:


TitleDescription of this WEB component. This text will be displayed on HTML page listing the WEB components.

Macro expression can be used for input ($.text ..) (it is evaluated while the application is launching).

View in HTML components listIf checked, the component will be visiblein the component list. Displaying such list is done through the WEB object registering this component (WEB object PmWeb, PmWebFolder or PmWebLang).

If not checked, the component will not be visible in the list. But it will be accessible through its WEB adress. It is useful for system components (e.g. the data offered to another applications), that are not intended to be choosen from WEB browsers.

When displaying the component list in the WEB browser this option can be supressed by pressing the Shift key and clicking the list title simultaneously. At this moment the list is reopened displaying all the components (including system components).

Data sourceDefines the content source for the web requested by client.
Disk files in specified folder - The content of requested WEB file will be read from a file with identic name located on the disc in selected folder.
Text set to pEvent.PageString property in onPageModify event - The content of requested WEB file will be set by script into the pEvent.PageString property in onPageModify event. In this case, the keywords are not used and the Keywords page is irrelevant.
Folder with filesThis configurator is visible only if Data source = Disk files in specified folder.
Path to the folder (and its subfolders) - for example C:/PmProj/WebPages. The requested files will be searched in this folder (HTML, XML and other files).

All files in this folder (and all subfolders) will be available via WEB and therefore it is highly recommended not to place any files in this folder that should not be accessible via WEB.

It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.

It is preset to #app:web by default, i.e. the paths to the subfolder web in the application folder.

Keywords use typeThis configurator is visible only if Data source = Disk files in specified folder.
Defines from where to take keywords for replacing. It is possible to choose more options but use only the last one because the other options are obsolete. The replacing of the key words is performed only over files with the extension *.htm, *.html and *.xml.
Every occurrence _(xx)_ in the file replace by xx keyword value (default) - The chars "_(" and ")_" in the file serves as flags of the beginning and the end of the key word. The object searches for the chars _( when reading the file. For each occurrence of these chars the name of the key word that begins just after _( and ends just before )_ is found. Then the whole text including _( and )_ is replaced by the value of the key word with the specified name defined on the Keywords page. See the example in the object description.
(obsolete) Keywords value replace exactly according to keyword name
(obsolete) Use section [PROMOTIC] in files only
(obsolete) Use keywords and section [PROMOTIC]
(obsolete) Use section [PROMOTIC] if exists, else use keywords
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice