Please enable JavaScript to view this site.

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

Labels/Titles API: setBreadcrumbsLabelTempl

Scroll Prev Next More

 

This function sets the current breadcrumbs template.

Syntax

Labels_setBreadcrumbsLabelTempl table, label, masterTable, page, language

Arguments

table

the table name.

label

the breadcrumb template.

masterTable

the master table name (if we are on details table page at the moment).

language

the language of the breadcrumbs template. Specify an empty string "" for the language parameter to use the current language.

page

the page name. 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

By default the Order Details table uses the following breadcrumbs menu:

 

Home / Orders / Order Details [5187]

 

We want to change it, removing the "Order details" part:

 

Home / Orders / 5187
 
You can use any field from the details table here (OrderID) or from master table (master.OrderID)

 

Note: You can use this code in the AfterAppInit, AfterTableInit, BeforeProcess events.

 

We can use either:

 

Labels_setBreadcrumbsLabelTempl "order details", "{%OrderID}", "orders", "English"

 

or

 

Labels_setBreadcrumbsLabelTempl "order details", "{%master.OrderID}", "orders", "English"

See also:

Labels/Titles API: getBreadcrumbsLabelTempl()

Page Designer: Working with page elements

Menu builder

Master-details relationship between tables

About Labels/Titles API