Closed gestern closed 9 years ago
The problem is gone when I'm attended "Widget location" in Widget, I've selected my snippet in "Layout block" and tapped "Rebuild block". Hmm
When you create new layout, you can go to Design -> Layouts
and click "Rebuild blocks" button.
You can also place snippet to layout with code
Snippet::render('snippet-name');
https://github.com/KodiCMS-Kohana/cms/wiki/Snippets#snippetrender
Got it.
I'm want to render a snippet inside of layout. How to do that?
My steps to reproduce:
take-care
with some html<h1>Hello World</h1>
;HTML
widget with nameTake-Care
;<?php Block::run('take-care'); ?>
take-care
in "Page Options" to be able to test new things;So, I had hoped to see my text ("Hello World!"), but I do not see anything. What is wrong?