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

Set preview mode earlier #2307

Merged
merged 2 commits into from
Apr 21, 2022
Merged

Commits on Apr 21, 2022

  1. Set preview mode early in Admin::PagesController

    When running `OnPageLayout` callbacks, it's probably wise to have
    `@version` available for choosing draft or public versions of pages
    (e.g. when loading a referenced page via the
    `Alchemy::Ingredient::Page`).
    mamhoff committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    0cb7b75 View commit details
    Browse the repository at this point in the history
  2. Run OnPageLayout callbacks after setting page version

    It's useful to have not just the page, but also the page version
    available in `OnPageLayout` callbacks.
    mamhoff committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    eca0e02 View commit details
    Browse the repository at this point in the history