Skip to content

Template usage is undocumented #28

Description

@JOJ0

Hi, I had a hard time trying to figure out how to use wagtailnews in templates. I had to use template debugging tools to finally find out that these variables are mainly to be used:

newsitem_list
newsitem_page
newsitem_view

newsitem_list can be iterated through to receive a list of news pages / blog posts. That was the most important thing for me to find out by experimenting.

I am a wagtail beginner more or less, so please point me in the right direction if this would have been found somewhere in the docs or could be otherwise retrieved by reading code - In any case, mentioning it at least in you README.md is essential, at least to my understanding.

Thanks a lot for wagtailnews! :-)
and all the best,
Jojo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions