module_index.go 861 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package modules
  2. import (
  3. utils "golang-fave/engine/wrapper/utils"
  4. )
  5. func (this *Module) Module_index() {
  6. // Do something here...
  7. }
  8. func (this *Module) Module_index_display() bool {
  9. return true
  10. }
  11. func (this *Module) Module_index_alias() string {
  12. return "index"
  13. }
  14. func (this *Module) Module_index_name() string {
  15. return "Pages"
  16. }
  17. func (this *Module) Module_index_order() int {
  18. return 1
  19. }
  20. func (this *Module) Module_index_submenu() []utils.ModuleSubMenu {
  21. result := make([]utils.ModuleSubMenu, 0)
  22. result = append(result, utils.ModuleSubMenu{Alias: "default", Name: "List of pages"})
  23. result = append(result, utils.ModuleSubMenu{Alias: "modify", Name: "Add new page"})
  24. return result
  25. }
  26. func (this *Module) Module_index_content() string {
  27. return "Index content"
  28. }
  29. func (this *Module) Module_index_sidebar() string {
  30. return "Index right sidebar"
  31. }