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_getPageTitleTempl(table, page, language)
Arguments
table
the table name.
field
the field name.
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
Returns the page title. Page titles can be set in the Label Editor.
Example
This example shows how to get the Edit page title template.
Labels_getPageTitleTempl("carscars", PAGE_EDIT, "English")
See also:
•Labels/Titles API: setPageTitleTempl()
•Labels/Titles API: getFieldLabel()
•Miscellaneous settings: Label Editor