Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Labels/Titles API > Methods

Labels/Titles API: setPageTitleTempl

Scroll Prev Next More

 

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. If the language parameter is not specified, the current language is used.

page

the page parameter accepts one of the following values:

Constants.PAGE_LIST

Constants.PAGE_PRINT

Constants.PAGE_ADD

Constants.PAGE_EDIT

Constants.PAGE_VIEW

Constants.PAGE_SEARCH

Constants.PAGE_EXPORT

Constants.PAGE_IMPORT

Constants.PAGE_REPORT

Constants.PAGE_RPRINT

Constants.PAGE_CHART

Constants.PAGE_MASTER_INFO_LIST

Constants.PAGE_MASTER_INFO_PRINT

Constants.PAGE_MASTER_INFO_REPORT

Constants.PAGE_MASTER_INFO_RPRINT

Constants.PAGE_MENU

Constants.PAGE_LOGIN

Constants.PAGE_REGISTER

Constants.PAGE_REMIND

Constants.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", Constants.PAGE_EDIT, "Edit car [{%id}]")

See also:

Labels/Titles API: getPageTitleTempl()

Labels/Titles API: setFieldLabel

Miscellaneous settings: Label Editor

About Labels/Titles API