Welcome to patternlab-node Discussions! #1401
Replies: 2 comments 5 replies
-
Hi, I'm Bjørn T, a UX consultant from Oslo, Norway. I have a question that was previously posted on Stack Overflow that I would love some feedback on. Is that OK to ask about here? The question is: “Presenting hierarchical data in Pattern lab — how to use the recommended atomic structure while visualizing a fully populated template?” |
Beta Was this translation helpful? Give feedback.
-
Hi Josef, I've just started using Pattern Lab and it may be too early for me to ask a question but... I created a dummy project using the TWIG templating engine with full demo for me to study. However, the app is not taking the homepage specific data: if I navigate the frontend to pages level it keeps showing the global data from _data. If I remove the "hero" hierarchical level from the homepage.json then it's showing the image, not sure if correctly. This is the homepage.json as found in the demo:
And this is the one showing the image:
but it doesn't look that correct to me... since the hero property is referenced elsewhere... I also tried the mustache version with full demo, instead, is working as expected. Since we're using Drupal and I may be interested in integrating pattern lab into our workflow I was curious to test using the TWIG templating engine. Thanks and sorry if the question is too basic! |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions