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

[Bug]: Create Tour within a Resource #9

Open
ingmontoya opened this issue Nov 29, 2023 · 3 comments
Open

[Bug]: Create Tour within a Resource #9

ingmontoya opened this issue Nov 29, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@ingmontoya
Copy link

What happened?

is there a way to trigger/open a tour within a Filament resource ?

How to reproduce the bug

Expected behaviour: Open a tour within a filament resources

Package Version

3.0

PHP Version

8.2

Laravel Version

10.0

Which operating systems does with happen with?

macOS

Notes

No response

@ingmontoya ingmontoya added the bug Something isn't working label Nov 29, 2023
@JibayMcs
Copy link
Owner

JibayMcs commented Aug 6, 2024

Hi !

I don't quite understand the request,

Instead of having to define HasTour in each resource pages (List/Create/Edit,etc)

You'd like to be able to manage it directly in the resource, right?

@Mrkbingham
Copy link

@ingmontoya I don't think this is a bug. You should be able to use the HasTour trait on any resource page. You may have been missing the piece that I've added to this PR: #27

The short version is that the docs currently provide examples of user-initiated tours. If you check out the new sample section I've added, you can see instructions on how to get the Tour to load immediately after the page is loaded. Hope this helps!

@Mrkbingham
Copy link

Quick update - I was wrong earlier, it turns out the missing piece on my issue was that I wasn't using the correct route setting on my tours, as that's the default supported functionality for rendering tours that can also account for the only_visible_once setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants