feat: URL rules and the settings singleton
This commit is contained in:
31
admin_navigation.go
Normal file
31
admin_navigation.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package seo
|
||||
|
||||
import (
|
||||
"git.golem15.com/golem15/sm-seo-plugin/controllers"
|
||||
"git.golem15.com/golem15/summercms/modules/pact"
|
||||
)
|
||||
|
||||
// Navigation registers the SEO main item (UI-SPEC C2) behind
|
||||
// golem15.seo.manage. It lands on URL rules until the redirects screen
|
||||
// exists; each side-menu entry is added when its controller exists.
|
||||
func (*Plugin) Navigation() []pact.NavigationItem {
|
||||
return []pact.NavigationItem{{
|
||||
Code: "seo",
|
||||
Label: "golem15.seo::lang.nav.seo",
|
||||
Icon: "search",
|
||||
Permissions: []string{controllers.PermissionManage},
|
||||
Order: 600,
|
||||
Controller: controllers.RulesControllerID,
|
||||
SideMenu: []pact.NavigationItem{
|
||||
{
|
||||
Code: "rules",
|
||||
Label: "golem15.seo::lang.nav.rules",
|
||||
Icon: "link",
|
||||
Permissions: []string{controllers.PermissionManage},
|
||||
Controller: controllers.RulesControllerID,
|
||||
},
|
||||
},
|
||||
}}
|
||||
}
|
||||
|
||||
var _ pact.HasNavigation = (*Plugin)(nil)
|
||||
Reference in New Issue
Block a user