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

Update docs to registering options #54

Closed
f-liva opened this issue Nov 16, 2019 · 7 comments
Closed

Update docs to registering options #54

f-liva opened this issue Nov 16, 2019 · 7 comments

Comments

@f-liva
Copy link

f-liva commented Nov 16, 2019

From AppServiceProvider

$pages->registerOption('general', GeneralOptions::class); don't works
$pages->register('option', 'general', GeneralOptions::class); it works

@voidgraphics
Copy link
Member

Took me a while but I finally got to it. Thank you very much for the report.

@techguydev
Copy link

How can we access this page information in a controller?, I need to use a select field to set the currency in the system.

@voidgraphics
Copy link
Member

You can use the Page facade: https://whitecube.github.io/nova-page/#/?id=useful-facade-methods

More specifically the Page::option() method.

2 similar comments
@voidgraphics
Copy link
Member

You can use the Page facade: https://whitecube.github.io/nova-page/#/?id=useful-facade-methods

More specifically the Page::option() method.

@voidgraphics
Copy link
Member

You can use the Page facade: https://whitecube.github.io/nova-page/#/?id=useful-facade-methods

More specifically the Page::option() method.

@techguydev
Copy link

Thanks

I tried to use it but it shows an error:

"Class 'Page' not found"

@voidgraphics
Copy link
Member

use \Page;

// or

use Whitecube\NovaPage\NovaPageFacade as Page;

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

3 participants