Skip to content
New issue

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

"Modular Pages" is missing the template part #274

Closed
suntrop opened this issue May 2, 2016 · 2 comments
Closed

"Modular Pages" is missing the template part #274

suntrop opened this issue May 2, 2016 · 2 comments

Comments

@suntrop
Copy link

suntrop commented May 2, 2016

I am fairly new to GRAV and looking through all docs – hopefully carful :-)

I think the part about Modular Pages is missing the point where it says you have to iterate in your template through the sub-pages/children/blocks.

I was thinking it is done by GRAV itself, since I define the order in my MD-file.

grav-learn/pages/02.content/09.modular/docs.md

Haven't done it before, but maybe I can contribute to the docs?!

@flaviocopes
Copy link
Contributor

You're welcome to contribute to the docs by clicking the 'Edit' button at the top of a page, and submitting a Pull Request.

I believe this is not covered becaue it's the job of a theme, so not really a content-specific part, but that can surely be mentioned.

For example most themes implement modular.html.twig as

    {% for module in page.collection() %}
        {{ module.content }}
    {% endfor %}

@suntrop
Copy link
Author

suntrop commented May 2, 2016

I never made a Pull Request. Have to look how :-)

However, that little code snippet is quite important. I think it would complete this particular part of the docs and one can follow along "without" the other pages.

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

No branches or pull requests

2 participants