Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a new blank page like dahsboard #223

Open
ghost opened this issue Jul 8, 2020 · 3 comments
Open

create a new blank page like dahsboard #223

ghost opened this issue Jul 8, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 8, 2020

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

@raven-chen
Copy link
Member

raven-chen commented Jul 8, 2020

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.

@ghost
Copy link
Author

ghost commented Jul 8, 2020

@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

@han2015
Copy link
Contributor

han2015 commented Jun 29, 2021

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)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants