We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to pass some data to the layout method, but I get "Undefined variable" error every time.
My template: /site/templates/default.php
<?php layout("default", ["title" => "Some title"]) ?> <p>Some content...</p>
Layout: /site/layouts/default.php
<?= $title ?> <?php slot() ?> <?php endslot() ?>
Latest version of Kirby Plainkit, no other plugins installed.
The text was updated successfully, but these errors were encountered:
Did you try in slots? Like that:
<?php slot() ?> <?= $title ?> <?php endslot() ?>
Sorry, something went wrong.
Yes, I tried that. Unfortunately it does not work either.
Fix global layout data #1
1274081
afbora
Successfully merging a pull request may close this issue.
I tried to pass some data to the layout method, but I get "Undefined variable" error every time.
My template:
/site/templates/default.php
Layout:
/site/layouts/default.php
Latest version of Kirby Plainkit, no other plugins installed.
The text was updated successfully, but these errors were encountered: