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

Replace shipped slides with custom slides #470

Open
wiswedel opened this issue Jan 29, 2021 · 10 comments
Open

Replace shipped slides with custom slides #470

wiswedel opened this issue Jan 29, 2021 · 10 comments

Comments

@wiswedel
Copy link

Service Owners of large Nextcloud installations would appreciate being able to onboard their users with more tailored slides.

The shipped slides focus on the Nextcloud project, its own values its interoperability.
However, in an enterprise environment, there are usually other topics important like custom documentation, first steps how to use the platform, support contacts etc.

It would be good to have the ability to create custom slides to replace the shipped ones. Their format may be discussed further.

Bonus: Those slides' order would even be tailorable to user groups.

@juliushaertl
Copy link
Member

This is already somewhat possible with a custom theme where you place the individual contents of the page.* templates in https://github.com/nextcloud/firstrunwizard/tree/master/templates into themes/yourtheme/apps/firstrunwizard/templates

Definitely not the most elegant and flexible solution but should work for the most use cases.

The intro video slide is not cutomizable through that but can be disabled with removing it from the slide list with the following config:

occ config:app:set firstrunwizard slides --value="values,apps,clients,final"

We can of course think about moving this towards a nicer technical solution, but we'd need to know more about the actual requirements for that then especially to know if there are cases which are not achievable with the current way.

@wiswedel
Copy link
Author

wiswedel commented Feb 1, 2021

Thanks for the workaround suggestion, @juliushaertl.

My tests with that approach only allow me to customize within the above mentioned set of slides. I cannot add a 5th, 6th and 7th slide with different names, can I?

Also: Isn't the themes folder approach deprecated generally and shouldn't be used anymore?

@juliushaertl
Copy link
Member

My tests with that approach only allow me to customize within the above mentioned set of slides. I cannot add a 5th, 6th and 7th slide with different names, can I?

No that would be a limitation currently.

Also: Isn't the themes folder approach deprecated generally and shouldn't be used anymore?

Yes, though we have not dropped it yet as we currently don't have a replacement for advanced customization like replacing language strings or the mentioned template replacement.

@wiswedel
Copy link
Author

wiswedel commented Feb 1, 2021

Yes, though we have not dropped it yet

Makes it no longer safe for production anyway

@ghost
Copy link

ghost commented May 5, 2021

As long as the video url doesn't change, you may want to replace the video update safe with an alias directive in your webserver config e.g. in your apache vhost config:

Alias "/apps/firstrunwizard/img/Nextcloud.webm" "/var/www/nextcloud/nextcloud-adjustments/apps/firstrunwizard/img/mybrand.webm"
Alias "/apps/firstrunwizard/img/Nextcloud.mp4" "/var/www/nextcloud/nextcloud-adjustments/apps/firstrunwizard/img/mybrand.mp4"

@juliushaertl
Copy link
Member

Quick idea for implementing this:

  • Add an event that is dispatched during the slide building
    • The event allows to set custom slides with their HTML content
    • The event allows to set a custom url for a intro video
  • A 3rdparty app could then listen to the event and do the customization

master...enh/customslides

@szaimen
Copy link
Collaborator

szaimen commented Mar 29, 2023

@juliushaertl is master...enh/customslides ready to get merged or is something still missing?

@juliushaertl
Copy link
Member

I don't fully remember, proably some code polishing but I don't see to have time for that currently.

@szaimen
Copy link
Collaborator

szaimen commented Mar 29, 2023

All right, thanks for the answer! :)

@keomabrun
Copy link

Hello there 👋
Thanks for the work !
This is quite an old issue now, sorry to revive this.
Is there any way to add extra/custom slides now by any chance ?

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

No branches or pull requests

4 participants