qor / admin

Qor Admin - Instantly create a beautiful, cross platform, configurable Admin Interface and API for managing your data in minutes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create a new blank page like dahsboard

opened this issue · comments

Hi guys,

Hope you are all well !

I would like to create a plugin for qor with only a blank template and a link, like dashboard.tmpl.

Is there a boilerplate/skeleton for blank admin page ?
How should I create this plugin ? Do you have any examples ?

The goal is to create a page in the admin panel with the following interface with qor left menu:
pipeline

Thanks in advance for any insights or inputs on that topic.

Cheers,
X

commented

hi @x0rzkov

I guess https://doc.getqor.com/admin/theming_and_customization.html the "Customize templates" section might have what you wanted? You can create a custom theme, and do whatever you want there.

@raven-chen , thanks for the reply !

Do you have a snippet or code example to create it ?

I am quite lost with the documentation.

Thanks in advance

I would like to create a plugin for qor with only a blank template and a link, like dashboard.tmpl.

Admin.AddMenu(&admin.Menu{Name: "NewItem", Link: "/admin/newitem"})
Admin.GetRouter().Get("/newitem", newItemPage)
func newItemPage(ctx *admin.Context){
     //do something
     ctx.Execute("temp_name", dataForTemplate)
}