Please enable JavaScript to view this site.

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

Labels/Titles API: getPageTitleTempl

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.getPageTitleTempl(table, page, language)

Arguments

table

the table name.

field

the field name.

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

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.setPageTitleTempl("carscars", Constants.PAGE_EDIT)

See also:

Labels/Titles API: setPageTitleTempl()

Labels/Titles API: getFieldLabel()

Miscellaneous settings: Label Editor

About Labels/Titles API