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

Would it be possible to support nested collections? #119

Open
Kralizek opened this issue Jul 13, 2022 · 3 comments
Open

Would it be possible to support nested collections? #119

Kralizek opened this issue Jul 13, 2022 · 3 comments

Comments

@Kralizek
Copy link

I have a case like the following one:

customers:
  - name: Amazing Customer
    foo: bar
    projects:
       - name: P1
         bar: foo
       - name: P2
         bar: fizz
  - name: Brilliant Customer
    foo: bas
    projects:
      - name: P3
        bar: fritz
      - name: P4
        bar: fuzz

I would like to generate a page for each customer and a page for each project.

It would be even better if, when rendering a project, I could access the customer it belongs to. Something like page.parent.foo

@daysleeperrr
Copy link

I second this. It would be great to have nested directory support. In my usecase, I have a countries dataset and a regions dataset. It would be great to create URLs like /canada/ontario or /italy/tuscany/ instead of canada_ontario or italy_tuscany. Especially when also adding a third level, having multiple folders instead of /canada_ontario_toronto/ or /italy_tuscany_pisa/.

@avillafiorita
Copy link
Owner

Sorry for the late reply.
I'll look into that

@musicaldoctor
Copy link

+1

In my case i'd love to be able to generate car make pages (e.g. citroen) and all the multiple model pages (e.g. C3). Of course this would also need the ability to use different templates for each of those objects.

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

4 participants