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

$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");

 

or

 

Labels::setBreadcrumbsLabelTempl("order details", "{%master.OrderID}", "orders");

See also:

Labels/Titles API: getBreadcrumbsLabelTempl()

Page Designer: Working with page elements

Menu builder

Master-details relationship between tables

About Labels/Titles API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software