hNavigationPosition

Called to add entries in the left hand navigation for logged in users. The navigation should be generated for O.currentUser.

The name is the position name configured in the Navigation using the System management user interface.

Navigation is aggressively cached, and this hook will only be called occasionally for any given user. Call O.reloadNavigation() to invalidate the cache.

Arguments

Name Type Description
name String Configured position name

Response

Return information by changing these properties of the response object.

Name Type Description
navigation NavigationBuilder NavigationBuilder object for adding entries to the navigation

JavaScript template


P.hook('hNavigationPosition', function(response, name) {
    // Respond to hook, for example
    // response.navigation = ...
});