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
Řešil jsem problém s použitím LB v page.html.twig Kolega Petr Okurek mě navedl k tomuto řešení, které funguje pěkně:
function csgov_theme_preprocess_page(&$variables) { if (isset($variables['node'])) { if($variables['node']->hasField('layout_builder__layout')) { $variables['has_page_layout'] = !empty($variables['node']->get('layout_builder__layout')->getSections()); } } }
The text was updated successfully, but these errors were encountered:
na úrovni page preprocessu by se dalo otestovat i použití vlastních templates pro LB.
if (substr($layout->id(), 0, 8) === 'section_') { ... }
Sorry, something went wrong.
No branches or pull requests
Řešil jsem problém s použitím LB v page.html.twig
Kolega Petr Okurek mě navedl k tomuto řešení, které funguje pěkně:
function csgov_theme_preprocess_page(&$variables) { if (isset($variables['node'])) { if($variables['node']->hasField('layout_builder__layout')) { $variables['has_page_layout'] = !empty($variables['node']->get('layout_builder__layout')->getSections()); } } }
The text was updated successfully, but these errors were encountered: