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

Accessing rendered data from custom collections #289

Closed
edwardhorsford opened this issue Oct 30, 2018 · 4 comments
Closed

Accessing rendered data from custom collections #289

edwardhorsford opened this issue Oct 30, 2018 · 4 comments
Assignees
Labels

Comments

@edwardhorsford
Copy link
Contributor

I'm using quite a few custom collections to create groups of content.

I've found though that items provided with collections.getAll() don't have the rendered value in renderData. Is it possible to get the rendered value?

For reference, I want to create a page that lists all the titles of all the content in a collection - but the tiles are dynamic (they're paginated pages) and rely on renderData.

@zachleat zachleat added the bug label Nov 19, 2018
@zachleat
Copy link
Member

Confirmed that something like this does not have the rendered renderData values:

{% for post in collections.dog %}{{ post.data.renderData.key2 }}{% endfor %}

@gerwitz
Copy link

gerwitz commented Jul 20, 2019

I know renderData is a bit of a stopgap, but I'd really love to have this working (for dynamic titles, defined in layouts).

@zachleat zachleat added this to the Next Minor Version milestone Feb 17, 2020
@zachleat zachleat self-assigned this Feb 17, 2020
@zachleat
Copy link
Member

Shipping with the next minor version

@edwardhorsford
Copy link
Contributor Author

Woop! thanks @zachleat

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

No branches or pull requests

3 participants