Development Guide
Locator
This is deprecated use the Breadcrumb classes from the Kitchensink instead.
The locator bar (aka bread crumps) is handled by the class ilLocatorGUI
. A global instance is available via the global variable $ilLocator
. To add a single item to the locator bar you use the addItem($title, $link, $frame)
method.
There is a convenient method that adds all repository related items for a given end node to the locator called $ilLocator->addRepositoryItems($a_ref_id)
. If no reference id is given, the current $_GET["ref_id"] value is used. Please note that this works for container items only (root node, categories, courses, groups, folders).
After adding the items to the locator global object, the setLocator()
call to the global template object inserts the locator into the Standard Template.
function foo() |