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

[7.2-stable] Fallback to @page var if no Current.page is set #3020

Merged
merged 1 commit into from
Sep 4, 2024

Commits on Sep 4, 2024

  1. Fallback to @page var if no Current.page is set

    With Alchemy 7.2 (#2701) we started to use `Alchemy::Current.page`
    for rendering elements of current page. If one has a custom
    controller to render Alchemy content with:
    
        render(template: "alchemy/pages/show")
    
    it is now empty if `Alchemy::Current.page` is not set.
    
    Someday we might deprecate the `@page` instance variable,
    but until then we need to fall back to it.
    
    (cherry picked from commit 26072ab)
    tvdeyen committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    8ec7b62 View commit details
    Browse the repository at this point in the history