module_index.go 801 B

123456789101112131415161718192021222324252627282930313233343536
  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_submenu() []utils.ModuleSubMenu {
  18. result := make([]utils.ModuleSubMenu, 0)
  19. result = append(result, utils.ModuleSubMenu{Alias: "default", Name: "List of pages"})
  20. result = append(result, utils.ModuleSubMenu{Alias: "modify", Name: "Add new page"})
  21. return result
  22. }
  23. func (this *Module) Module_index_content() string {
  24. return "Index content"
  25. }
  26. func (this *Module) Module_index_sidebar() string {
  27. return "Index right sidebar"
  28. }