Returns a new navigation object corresponding to the given target and name of the option. The target has two possibel values "sidebar" and "course" and indicates the place where the navigation is shown. The option name is the key of an entry in the array with the navigation options.
The navigation options are configured in the global configuration as an array. For further details see documentation of entry COURSE_SEARCH_NAVIGATION_OPTIONS in global configuration.
This is an example with all possible options:
{ // "courses", "semtree" and "rangetree" are the "old" search options. // The link text is fixed. "courses":{ "visible":true, // The target indicates where the link to this search option is // placed. Possible values are "sidebar" for a link in the sidebar // or "courses" to show a link (maybe with picture) below the // "course search". "target":"sidebar" }, "semtree":{ "visible":true, "target":"sidebar" }, "rangetree":{ "visible":false, "target":"sidebar" }, // New option to acivate the search for modules and the systematic // search in studycourses, field of study and degrees. "module":{ "visible":true, "target":"sidebar" }, // This option shows a direct link in the sidebar to an entry (level) // in the range tree. The link text is the name of the level. "fb3_hist":{ "visible":true, "target":"sidebar", "range_tree_id":"d1a07cf0c8057c664279214cc070b580" }, // The same for an entry in the sem tree. "grundstudium":{ "visible":true, "target":"sidebar", "sem_tree_id":"e1a07cf0c8057c664279214cc070b580" }, // This shows a link in the sidebar to the course search. The text is // availlable in two languages. "vvz":{ "visible":true, "target":"sidebar", "url":"dispatch.php/search/courses?level=f&option=vav", "title":{ "de_DE":"Veranstaltungsverzeichnis", "en_GB":"Course Catalogue" } }, // This option uses an url with search option and shows a link in the // sidebar to an entry in the range tree with all courses. "test":{ "visible":true, "target":"sidebar", "url":"dispatch.php/search/courses?start_item_id=d1a07cf0c8057c664279214cc070b580&cmd=show_sem_range_tree&item_id=d1a07cf0c8057c664279214cc070b580_withkids&level=ev", "title":{ "de_DE":"Historisches Institut", "en_GB":"Historical Institute" } }, // This option shows a link to the sem tree with picture below the // course search (target: courses). // This is the behaviour of Stud.IP < 4.2. "csemtree":{ "visible":true, "target":"courses", "url":"dispatch.php/search/courses?level=vv", "img":{ "filename":"directory-search.png", "attributes":{ "size":"260@100" } }, "title":{ "de_DE":"Suche im Vorlesungsverzeichnis", "en_GB":"Search course directory" } }, // This option shows a link to the range tree with picture below the // course search (target: courses). // This is the behaviour of Stud.IP < 4.2. "crangetree":{ "visible":true, "target":"courses", "url":"dispatch.php/search/courses?level=ev", "img":{ "filename":"institute-search.png", "attributes":{ "size":"260@100" } }, "title":{ "de_DE":"Suche in Einrichtungen", "en_GB":"Search institutes" } } }
- Parameters
-
string | $target | |
string | $option_name | |
- Returns
- Navigation|null