This function works with page title templates and not with the titles directly. Examples of page title templates can be found in the Label Editor.
Syntax
Labels_setPageTitleTempl table, page, title, language
Arguments
table
the table name.
field
the field name.
title
the page title.
language
the language of the template. Specify an empty string "" for the language parameter to use the current language.
page
the page parameter accepts one of the following values:
PAGE_LIST
PAGE_PRINT
PAGE_ADD
PAGE_EDIT
PAGE_VIEW
PAGE_SEARCH
PAGE_EXPORT
PAGE_IMPORT
PAGE_REPORT
PAGE_RPRINT
PAGE_CHART
PAGE_MASTER_INFO_LIST
PAGE_MASTER_INFO_PRINT
PAGE_MASTER_INFO_REPORT
PAGE_MASTER_INFO_RPRINT
PAGE_MENU
PAGE_LOGIN
PAGE_REGISTER
PAGE_REMIND
PAGE_CHANGEPASS
Return value
No return value.
Example
This example shows how to change the Edit page title template.
Note: You can use this code in the AfterAppInit, AfterTableInit, BeforeProcess events.
Labels_setPageTitleTempl "carscars", PAGE_EDIT, "Edit car [{%id}]", "English"
See also:
•Labels/Titles API: getPageTitleTempl()
•Labels/Titles API: setFieldLabel
•Miscellaneous settings: Label Editor