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

Best strategy to use a non-default template #101

Open
fcollonval opened this issue Mar 23, 2021 · 3 comments
Open

Best strategy to use a non-default template #101

fcollonval opened this issue Mar 23, 2021 · 3 comments

Comments

@fcollonval
Copy link
Contributor

What is the best strategy to use a custom voila template? Is it by setting voila_configuration.allow_template_override to False and forcing the wanted template?

Comment

The behaviour of the notebook toolbar button and the editor toolbar button is slightly different (the editor set the template but not the notebook):

`${baseUrl}voila/render/${panel.context.path}`,

const conf = '?voila-template=gridstack';
const win = window.open(
`${baseUrl}voila/render/${this._path + conf}`,

@hbcarlos
Copy link
Member

We need to remove the one from the notebook since voila-preview also adds this button (there is an issue #84).
Maybe we can change the icon and use this button to open voila with a gridstack template like the one on the editor's toolbar.

@hbcarlos
Copy link
Member

What is the best strategy to use a custom voila template? Is it by setting voila_configuration.allow_template_override to False and forcing the wanted template?

We can open voila with a specific template by adding ?voila-template=gridstack at the url.

@fcollonval
Copy link
Contributor Author

Sorry the question was lacking clarity. In my company, we need to add branding to the template (like so many others). So forcing default gridstack template is not acceptable. For now the configuration is done on the server side to force the company's template.

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