Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

How to pull in faq items from the faq module in a custom template #180

Open
REPTILEHAUS opened this issue Oct 27, 2018 · 3 comments
Open

Comments

@REPTILEHAUS
Copy link

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 ?

@REPTILEHAUS
Copy link
Author

also Undefined variable: page when doing @block("faq", "cms-frontend::partials.footer-menu")

@mlantz
Copy link
Member

mlantz commented Oct 30, 2018

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.

@davisriska
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants