Gallery3.04 clean canvis theme - change home url

Andy-one

Joined: 2012-01-17
Posts: 6
Posted: Sat, 2012-08-25 22:27

I would like to change the home URL on the menu to a specific url. Right now its set to root. All attempts I have made broke the gallery

This is the code I see, which I think is the correct spot for this.. Using Gallery3.04 with clean canvis theme, fixed.

static function site_menu($menu, $theme, $item_css_selector) {
if ($theme->page_subtype != "login") {
$menu->append(Menu::factory("link")
->id("home")
->label(t("Home"))
->url(item::root()->url()));

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2012-08-25 22:56
 
Andy-one

Joined: 2012-01-17
Posts: 6
Posted: Sun, 2012-08-26 03:52

Great thanks, that looks to be exactly what I need.