Open REPTILEHAUS opened 5 years ago
also Undefined variable: page when doing @block("faq", "cms-frontend::partials.footer-menu")
What do you mean by custom template? There are the theme
files for FAQs which is just a basic blade file with some extras.
The block
component is for pages and blog entries since they have the block component. Meaning defining a block
is like saying I want to be able to have custom WYSIWYG content in this area.
Try using the FAQRepository $repository
. And get the FAQs as $repository->published(); That will give you all the FAQs that are published as a collection.
Decided to try out this cms again but cant find out how to do this.. tried a couple of things
@include('cms-frontend::partials.myfaq')
any pointers ?